/    Sign up×
Community /Pin to ProfileBookmark

text to long to work with

Hi,

i’m trying to put an extreme long text(about 6 pages, 10 points) in to my database by PHP the server gives an error. REQUEST URI TOO LARGE.
when I put the text into the database without PHP and i try to echo it…
it doesn’t work. So the fact is it is to long. Are there any solutions for this.
I know the solution of making the text smaller so are there any others…

Greetings Zeb

to post a comment
PHP

8 Comments(s)

Copy linkTweet thisAlerts:
@pointfiftyaeSep 20.2005 — Can't you divide your text in paragraphs or pages for example ?
Copy linkTweet thisAlerts:
@zebdaagauthorSep 20.2005 — but who do I split text...
Copy linkTweet thisAlerts:
@JerryJrSep 20.2005 — Hi,

i'm trying to put an extreme long text(about 6 pages, 10 points) in to my database by PHP the server gives an error. REQUEST URI TOO LARGE.

when I put the text into the database without PHP and i try to echo it...

it doesn't work. So the fact is it is to long. Are there any solutions for this.

I know the solution of making the text smaller so are there any others...

Greetings Zeb[/QUOTE]


What type are you using for the database field?
Copy linkTweet thisAlerts:
@zebdaagauthorSep 20.2005 — longtext
Copy linkTweet thisAlerts:
@Stephen_PhilbinSep 20.2005 — Use $_POST to send large ammounts of data from a form. $_GET is too limited for such a job.
Copy linkTweet thisAlerts:
@zebdaagauthorSep 20.2005 — sorry to ask but can you give me and example of this??

How can i send information to my database by using $POST....and how do i get it from the database to the form??
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYSep 28.2005 — in what format is your document?
Copy linkTweet thisAlerts:
@NogDogSep 28.2005 — Presumably, somewhere you have a HTML form being used to start this process? If so, if the form tag has [b]method="get"[/b] in it (or no method at all), use [b]method="post"[/b] instead. If your form-handling script is then referencing form values via variable names like [b]$_GET['field'][/b] you will need to change them to [b]$_POST['field'][/b] .
×

Success!

Help @zebdaag spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.21,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...