Page 1 of 1

PHP not receiving entire query string

Posted: Wed Sep 22, 2010 6:56 pm
by solid
I have an Ext post that is sending data (I can confirm that the entire query string is sent by looking at firebug). There are about 2000 arguments passed in the 'query string', but it is well below the 8M max_post_size set in PHP. If I do a var_dump of the $_POST superglobal on the first line of the receiving page, it only shows about the first 200 arguments!

Again firebug shows that all 2000 arguments are passed in the EXT post, but only the first 200 (approx.) are received in the $_POST superglobal. What could possibly be causing this? Any help would be greatly appreciated. Thanks in advance.

Re: PHP not receiving entire query string

Posted: Wed Sep 22, 2010 7:06 pm
by buckit
a quick google shows lots of people with the same problem... here are some solutions (seems the best results involve using Suhosin)

http://piotr.eldora.pl/2008/04/23/suhos ... -php-limit
http://www.webhostingtalk.com/showthread.php?t=719729



Im sure you have your reasons... but why on earth do you have 2000 elements in your form?

Re: PHP not receiving entire query string

Posted: Thu Sep 23, 2010 9:01 am
by solid
IT WORKIED (the suhosin solution) !!!

Omg man thank you. I spent more time on that than I will admit, and I was approaching the end of my sanity. I had tried google, but I guess I flaked on the keywords. I'm reading those links now. Oh the reason I have 2000 args is that when you have lists in Ext and 'select all' it sends each option as a separate arg, so it only takes a few large lists to get out of hand, heh.