怀旧国机
[教程]php安全之禁用危险函数
schedule发表于 2012-07-22 18:45:00
visibility查看 264
chat_bubble回复 4
#1 楼主
在 php.ini 中找到
disable_functions =
这一行,在其后面添加需要禁止的危险函数名,以英文逗号分隔
disable_functions=passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_restore,dl,pfsockopen,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server
disable_functions =
这一行,在其后面添加需要禁止的危险函数名,以英文逗号分隔
disable_functions=passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_restore,dl,pfsockopen,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server
全部回复
(4)
登录 后才能回复
flag举报帖子