Sending Post to PHP

Asked

Viewed 24 times

0

I have a page that receives a post with an array larger than 1000, this array was "small" and worked well, but I recently realized that part of the content sent now is not coming from the other side, there is some restriction on the amount of data sent in the Post to PHP?

  • 1

    Exists the configuration post_max_size, but if the data exceeded this size the superglobal variables $_POST and $_FILES would be empty, not partially filled as you reported. So it is possible that the problem is another. Already checked your server log files?

  • thanks, it was that post_max_size same, solved here, thanks!

1 answer

0

This may be due to post_max_size.

There are two different locations you can set this up:

php.ini

post_max_size=20M
upload_max_filesize=20M

.htaccess / httpd.conf / virtualhost include

php_value post_max_size 20M
php_value upload_max_filesize 20M

Which one you should use depends on which one you have access to.

.htaccess does not require server re-start, but php.ini and other apache settings yes

Source: https://stackoverflow.com/questions/6135427/increasing-the-maximum-post-size

Browser other questions tagged

You are not signed in. Login or sign up in order to post.