scandir() has been disabled for security reasons

来源:互联网 发布:java 值传递 引用传递 编辑:程序博客网 时间:2024/05/17 08:25

php错误scandir() has been disabled for security reasons

原因:
php.ini里禁用了scandir()方法

解决:
编辑php.ini文件

disable_functions = scandir,passthru,exec,system,chroot,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_alter,ini_restore,dl,pfsockopen,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server,fsocket,fsockopen

去掉scandir保存并重起php-fpm即可。

php.ini 的位置:/usr/local/php/etc/php.ini

最后执行/etc/init.d/php-fpm restart重启下

阅读全文
0 0
原创粉丝点击