Page 1 of 1

maximum parameter size for a post

Posted: Fri Jun 21, 2002 9:07 am
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

Hamlet in mysql?

Posted: Fri Jun 21, 2002 9:18 am
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)

messing around

Posted: Fri Jun 21, 2002 9:23 am
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?

Posted: Fri Jun 21, 2002 9:54 am
by BDKR
Or a browser limitation? There is a whole list of possibilities. Do the research.

:?