Disable PHP Functions
Edit php.ini
Comment out the original disable_functions, then put this underneath
disable_functions = dl,passthru,proc_open,proc_close,shell_exec,system
/etc/rc.d/init.d/httpd restart
Enjoy
Ninad
|
|||||||
|
Edit php.ini
Comment out the original disable_functions, then put this underneath
disable_functions = dl,passthru,proc_open,proc_close,shell_exec,system
/etc/rc.d/init.d/httpd restart
Enjoy
Ninad
You must be logged in to post a comment.
May 9th, 2007 at 12:20 pm
Further you can add more functions to block php shell scripts –
disable_functions = system,passthru,readfile,escapeshellarg,escapeshellcmd,proc_close,
proc_open,ini_alter,dl,popen,show_source