user1032531
user1032531

Reputation: 26281

Size limits on POST

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.

Upvotes: 3

Views: 5128

Answers (4)

Stephan B
Stephan B

Reputation: 3701

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.

Upvotes: 4

BugFinder
BugFinder

Reputation: 17858

http://support.microsoft.com/kb/208427 says IE has limits of about 2k, I do remember HTML has some limits but I thought the HTML limit was on get not post.

Upvotes: 0

greenLizard
greenLizard

Reputation: 2346

In php.ini look for

post_max_size = 10M

Upvotes: 1

Aurel
Aurel

Reputation: 385

In php.ini there is the following configuration directive:

; Maximum size of POST data that PHP will accept.
; http://php.net/post-max-size
post_max_size = 8M

Upvotes: 1

Related Questions