警告:POST Content-Length为11313557字节超出限制 8388608字节
我收到上述警告。我搜索了互联网,我也增加了php.ini中的以下限制:
max_input_time = 600000;
max_execution_time = 60000000;
file_uploads = On;
upload_max_filesize = 1000M;
post_max_size = 1000M;
and also in mysql.ini file i have changed
max_allowed_packet = 100M;
但我仍然收到以下警告。小于8mb的文件很容易上传,但大于8mb会弹出上述错误消息。
答案 0 :(得分:3)
您需要在php.ini中设置upload_max_filesize和post_max_size的值:
; Maximum allowed size for uploaded files.
upload_max_filesize = 40M
; Must be greater than or equal to upload_max_filesize
post_max_size = 40M
然后你应该stop your apache service and then start your apache
。
基于linux的系统
/opt/lampp/lampp stop
/opt/lampp/lampp start
如果是Windows,请停止并停止您的apache或xampp服务。
答案 1 :(得分:0)
检查phpinfo页面,看看您是否编辑了正确的配置文件。已加载的配置文件位于phpinfo
Loaded Configuration File
页面中
答案 2 :(得分:0)
在您的流程文件中添加第一行 参数或者set_time_limit(0);