When I try to post some data that exceeds the php.ini post_max_size setting I get this error:
Warning: Unknown: POST Content-Length of X bytes exceeds the limit of Y bytes in on line 0.
I don't want to increase the post_max_size, I just want to be able to turn off the warning and tell if the post data exceeds the post_max_size. I've tried to turn of the warnings with error_reporting but since the warning is on line 0 that doesn't help.
Edit your php.ini and set error_reporting
to the production value that is in the comments. Set display_errors
to Off
. That should be enough. Remember to log errors to a log file.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.