PHP not receiving entire query string

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
solid
Forum Commoner
Posts: 28
Joined: Wed Aug 12, 2009 11:56 am

PHP not receiving entire query string

Post 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.
buckit
Forum Contributor
Posts: 169
Joined: Fri Jan 01, 2010 10:21 am

Re: PHP not receiving entire query string

Post 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?
solid
Forum Commoner
Posts: 28
Joined: Wed Aug 12, 2009 11:56 am

Re: PHP not receiving entire query string

Post 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.
Post Reply