edit_note帖子
805
stars积分
7,464
event加入
2011-06-08
怀旧国机
[教程]php安全之禁用危险函数
schedule发表于 2012-07-22 18:45:00
visibility查看 212
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)
2012-07-22 19:04:00
沙发
我不知道
2012-07-22 19:44:00
板凳
嘿嘿、
2012-07-22 21:07:00
地板
表示看不懂
2012-07-22 22:44:00
#5
什么嘛
登录 后才能回复
flag举报帖子