maximum parameter size for a post

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gregarine
Forum Newbie
Posts: 2
Joined: Fri Jun 21, 2002 9:07 am

maximum parameter size for a post

Post by gregarine »

I am trying to insert the entire play 'Hamlet' from a php form into
mysql. The text is 185482 bytes. I paste this into a textarea.

<textarea name='content' rows='30' cols='40'></textarea>

and the php called by the form does not seem to get the 'content'
parameter as this if returns false ie. 'content' is empty.
<?php if(!empty($_POST['content'])){


If I take just half of the play 88929 bytest everything works fine.

So I assume I am running into a php limit here on the size of a
parameter I can pass in a post.

I am running php with apache by the way.

Anybody now what the limit is, and how to get around it?
Should I do an upload instead?

-thanks
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Hamlet in mysql?

Post by BDKR »

Why do you want to do this? What exactly are you doing that you are inserting plays into a db?

Another possible thing that may be stopping you is an upper limit for a mysql insert. I'm not saying with certainty, but it occurs to me that there would be an upper limit here as well.

Try doing a phpinfo() and checking some of the parameters. However, I got this feeling that whatever it is you are doing, there may be a better way.

Later on,
BDKR (TRC)
gregarine
Forum Newbie
Posts: 2
Joined: Fri Jun 21, 2002 9:07 am

messing around

Post by gregarine »

It isnt getting to the point of inserting into mysql.

I am doing this to experiment with php-mysql platform's abitlity to deal with large text fields. While Hamlet is certaily an extreme size. i am just wondering what limit I am hitting and how to get around it.

possibly this is an Apache post limitation?
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Post by BDKR »

Or a browser limitation? There is a whole list of possibilities. Do the research.

:?
Post Reply