网站上传图片提示错误:chmod() has been disabled for security reasons in 的解决方法

 2022-03-06    711  

网站上传图片提示错误:chmod() has been disabled for security reasons in 的解决方法

问题:

在php站点后台上传图片的时候出现如下错误:chmod() has been disabled for security reasons in

解决方法:

1.由英文提示可以得知是php禁用了chmod()函数,我们找到php.ini中的disable_functions将其中的值chmod删除即可

1.png

注:这些默认被禁用函数是高危函数,请慎重

  •  标签:  
  • php
  •  

原文链接:https://77isp.com/post/232.html

=========================================

https://77isp.com/ 为 “云服务器技术网” 唯一官方服务平台,请勿相信其他任何渠道。