PHP POST内容长度警告

时间:2016-02-02 08:12:26

标签: php mamp mamp-pro

我在我的php.ini文件中将upload_max_filesizepost_max_size都设置为128M,重新启动了MAMP,但它无效。在我的phpinfo()中,它表示upload_max_filesize设置为32M,因此post_max_size。为什么会这样?我确保我正在编辑正确的php.ini并相应地重新启动所有内容。任何帮助都会很棒。感谢

enter image description here

1 个答案:

答案 0 :(得分:1)

如果您正在使用MAMP Pro,则需要在File > Edit Template > PHP > PHP x.xx php.ini下的MAMP菜单中编辑您的php.ini文件

问题是MAMP Pro会在每次启动时动态生成php.ini,因此会覆盖手动编辑的文件。

相关问题