沦陷今生 发表于 2014-10-3 01:46:26

空间商没开放chmod函数 是不是就用不了CI框架了? 求解救

空间商没开放chmod函数 程序运行不了 求解救

在本地环境运行正常

到了虚拟空间上报错500
$config['log_threshold'] = 1;
开启错误日志显示

ERROR - 2014-10-02 17:36:19 --> Severity: Warning--> chmod() has been disabled for security reasons D:\freehost\7sb8ekshsror3q\web\zqbx\system\core\Common.php 92
ERROR - 2014-10-02 17:36:19 --> Severity: Warning--> chmod() has been disabled for security reasons D:\freehost\7sb8ekshsror3q\web\zqbx\system\core\Common.php 92
ERROR - 2014-10-02 17:36:19 --> Severity: Warning--> chmod() has been disabled for security reasons D:\freehost\7sb8ekshsror3q\web\zqbx\system\libraries\Log.php 106

设置了
define('ENVIRONMENT', 'production');
还是错误500
求解救方法

沦陷今生 发表于 2014-10-3 01:47:36

源码Common.phpline 92
@chmod($file, DIR_WRITE_MODE);
不是已经加@了屏蔽报错继续运行程序了吗 怎么还是会运行不下去呢。。。

Hex 发表于 2014-10-3 10:42:19

沦陷今生 发表于 2014-10-3 01:47
源码Common.phpline 92
@chmod($file, DIR_WRITE_MODE);
不是已经加@了屏蔽报错继续运行程序了吗 怎么还 ...

把这句删了就好了。自己去服务器上设置权限就好了。
页: [1]
查看完整版本: 空间商没开放chmod函数 是不是就用不了CI框架了? 求解救