You need to set the value of upload_max_filesize
and post_max_size
in your php.ini :
(您需要在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
After modifying php.ini file(s), you need to restart your HTTP server to use new configuration.
(修改php.ini文件后,您需要重新启动HTTP服务器以使用新配置。)
If you can't change your php.ini, you're out of luck.
(如果您无法更改php.ini,那么您就不走运了。)
You cannot change these values at run-time; (您不能在运行时更改这些值。)
uploads of file larger than the value specified in php.ini will have failed by the time execution reaches your call to ini_set
. (当执行到达您对ini_set
的调用时,文件上传大于php.ini中指定的值将失败。)
See the Description of core php.ini directives .
(请参阅php.ini核心指令说明 。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…