在php.ini中更改upload

编程入门 行业动态 更新时间:2024-10-12 16:24:03
php.ini中更改upload_max_filesize,但phpinfo不显示更改(Changed upload_max_filesize in php.ini but phpinfo doesn't show the change)

基本上phpinfo说upload_max_filesize是2M,但是我在php.ini文件中将它改为8M。 我使用MAMP,所以我重新启动了MAMP,phpinfo仍然说2M。 我检查了phpinfo显示的php.ini文件的路径,它完全匹配。 查看我的YouTube视频,记录所有这些内容。

Basically phpinfo says upload_max_filesize is 2M, but I changed it in the php.ini file to 8M. I am using MAMP, so I restarted MAMP and phpinfo still says 2M. I checked the path to the php.ini file that phpinfo shows and it matched up exactly. See the YouTube video of me documenting all of this.

最满意答案

您应该更改/Applications/MAMP/bin/php/php5.4.10/conf/php.ini中的文件

之后你应该重置MAMP。 我之前也改变了所有的php.ini,并且phpinfo()没有改变,但是我不确定它是否需要工作,所以如果只更改上面路径中的文件,请尝试更改其他文件。

我希望能帮助你。

In httpd.conf file the PhpIniDir had the wrong path. It was off by one directory. That was the fix!

更多推荐

本文发布于:2023-08-01 02:22:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1350652.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:php   ini   upload

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!