Blogger Information
Blog 4
fans 0
comment 0
visits 2482
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
php安全配置 关闭php执行系统指令函数
寺之腊侯的博客
Original
475 people have browsed it

 代码如下    

1vim /etc/php.ini

   

去掉disable_functions前注释,编辑内容如下

 代码如下    

1disable_functions = exec,shell_exec,system,passthru,popen

   


友情提示,有朋友说想过滤eval函数,在php中这个不是函数无法在disable_functions禁止的哦


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post