Uncaught error with message 'E_WARNING: chmod() has been disabled for security reasons' E:\host\hncekjtftp\web\efcar\wind\utility\WindFile.php: 102 •97: if (!$handle = fopen($fileName, $method)) return false; •98: $ifLock && flock($handle, LOCK_EX); •99: $writeCheck = fwrite($handle, $data); •100: $method == self::READWRITE && ftruncate($handle, strlen($data)); •101: fclose($handle); •102: $ifChmod && chmod($fileName, 0777); •103: return $writeCheck; Warning: chmod() has been disabled for security reasons in D:\\freehost\\xxx\\WindFile.php on line 102 根据英文的意思我们知道是出于安全原因,已被禁用的chmod()了,那么解决办法就是很简单了,直接把chmod()禁用关了就可以了。 如果你有服务器权限操作方法很简单打开PHP.INI,找到这行: 代码如下 disable_functions = 在后面那里加上要禁用的函数,如禁用多个函数,要用半角逗号 , 分开 给个例子: 代码如下 disable_functions = passthru,exec,system,popen,chroot,scandir,chgrp,chown,escapesh ellcmd,escapeshellarg,shell_exec,proc_open,proc_get_status 删除chmod()即可 |
手机版|小黑屋|简洁模式|( 渝ICP备16003012号-2 )
GMT+8, 2024-4-20 14:55