PHP Warning: POST Content-Length of 1649460972 bytes exceeds the limit of 1073741824 bytes in Unknown on line 0
Recently I wrote an upload script in PHP, set the limits using .htaccess:
php_value upload_max_filesize “1.99G”
php_value post_max_size “1.99G”
and then I got this strange error:
PHP Warning: POST Content-Length of 1649460972 bytes exceeds the limit of 1073741824 bytes in Unknown on line 0
while trying to upload 1.53 GB file. But why the error said I exceeded 1GB limit?
Internal server error after placing php_value in .htaccess file?
I was recently moving a website to another server and I found out that after saving text into DB all the quotation marks were preceded by slashes.
This mean the “magic_quotes_gpc” option is enabled in the configuration file.
Here’s how to fix this behavior.
How to increase 2MB limit on import in phpMyAdmin?
PhpMyAdmin by default allows you to import only 2 MB file. In many cases this is just way too little.
In order to increase the values you need to alter your php.ini settings.
PHP Error “headers already sent”
If got an error like this one:
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at E:\websites\index.php:3) in E:\websites\index.php on line 5
it means you tried to change headers of the file after sending the content of the file.