QQ登录

只需一步,快速开始

立即注册 找回密码

流星爱

流星爱 门户 美文 技术 查看内容

PHPwind报错efcar\wind\utility\WindFile.php: 102解决办法

2014-6-12 20:25| 发布者: lxx| 查看: 7206| 评论: 0|原作者: lxx|来自: 流星爱


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()即可

QQ图片20140612202244.jpg



鲜花

握手

雷人

路过

鸡蛋

最新评论

返回顶部
  • 站长:47343626
  • 邮箱:lx@lxlove.cn
  • logo
返回顶部