I am sending data to PHP through HTTP POST. This works fine for data shorter than 8MB (8192KB), however when higher quantities of data are sent, PHP shows the $_POST variable to be empty. I emphasize that the $_POST variable does not even contain the names of the post fields, it exists as an empty array. The critical point seems to be between 8.0MB and 9.0MB, and continues higher of course.
I have attempted the following with no success:
ini_set('memory_limit', '500M');
ini_set('post_max_size', '220M');
ini_set('upload_max_filesize', '220M');
I require the data to pass through HTTP POST. The data cannot be uploaded as a file.
Also could Apache be responsible for this?
Any help would be appreciated.
ini_set('max_execution_time', 300);. So I assume yes.ini_set('post_max_size', '220M');andini_set('upload_max_filesize', '220M');won't work in php script because they are applied after getting file by PHP. You should define them in php.ini or in .htaccess or in vhost config