简体   繁体   English

设置php.ini max_file_size问题。

[英]Setting php.ini max_file_size issue.

I'm having trouble editing my php.ini max_file_size to 20M. 我在将php.ini max_file_size编辑为20M时遇到问题。 I can change it, save the document, but when I restart usbwebserver it simply changes it back to the default 2M. 我可以更改它,保存文档,但是当我重新启动usbwebserver时,只需将其更改回默认的2M。

Does anyone know of this problem and what causes it ? 有谁知道这个问题,是什么原因造成的?

Found the problem. 找到了问题。

There were actually two php.ini files. 实际上有两个php.ini文件。 One resides in my php folder and the other in the settings folder. 一个驻留在我的php文件夹中,另一个驻留在settings文件夹中。 Not sure why there are two, but editing both seems to do the trick. 不知道为什么会有两个,但是同时编辑两个似乎可以解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM