Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Size limits on POST

Tags:

linux

php

I was running approximately PHP Version 5.3.5. I wanted to enable SOAP, and upgraded to PHP Version 5.3.13 using webtatic repo. Everything is working great! Except...

I POST some an array using Ajax. The full array is posted by the client, but it appears the server only receives the first 1,000 elements of the array.

I looked into php.ini, and can't see any limit.

Please advise.

like image 910
user1032531 Avatar asked Jul 02 '26 00:07

user1032531


1 Answers

I flagged this as a duplicate of PHP Warning: Unknown: Input variables exceeded 1000 but the OP there had a different problem. Thus here the solution from the comments:

When PHP 5.3.9+ returns exactly 1000 variables and / or array elements, you run into security limit, see php.ini:max-input-vars. PHP Versions before that can run into the same problem caused by a similar limit imposed by suhosin, see its config

Increase the limit or change the way you transfer the data.

like image 149
Stephan B Avatar answered Jul 03 '26 14:07

Stephan B



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!