Home >Backend Development >PHP Tutorial > 表单文件大小设立

表单文件大小设立

WBOY
WBOYOriginal
2016-06-13 13:20:53968browse

表单文件大小设置
MAX_FILE_SIZE 在ie 和firefox 下不行,有没有其它更好的办法限制表单上传文件的大小而不是php.ini 里配置。

------解决方案--------------------
用.htaccess文件:
php_value upload_max_filesize 50M
php_value post_max_size 100M 

httpd.conf中配置了:AllowOverride All

自己验证,复制粘贴

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn