ini_set(" upload_max_filesize" 200M")不能在php中工作 [英] ini_set("upload_max_filesize","200M") not working in php
本文介绍了ini_set(" upload_max_filesize" 200M")不能在php中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
覆盖upload_max_filesize
我使用这些代码进行更改上传文件大小: -
i use these code for change upload file size :-
echo ini_get('upload_max_filesize').'<br/>';
ini_set("upload_max_filesize","300M");
echo ini_get("upload_max_filesize");
但是我GOT
BUT I GOT
2M
2M
在php.ini中设置
which is set in php.ini.
我想更改文件上传大小限制。
i want to change file upload size limit.
推荐答案
- http://php.net/manual/en/ini.list.php
upload_max_filesize2M PHP_INI_PERDIR
upload_max_filesize "2M" PHP_INI_PERDIR
- http://php.net/manual/en/configuration.changes.modes.php
PHP_INI_PERDIR 条目可以在php.ini,.htaccess,httpd.conf或.user.ini(自PHP 5.3开始)中设置
PHP_INI_PERDIR Entry can be set in php.ini, .htaccess, httpd.conf or .user.ini (since PHP 5.3)
所以你不能使用 ini_set
来做这个。
So you can't use ini_set
for this.
这篇关于ini_set(" upload_max_filesize" 200M")不能在php中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文