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

One Response to “Disable PHP Functions”

  1. Sachin Says:

    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

Leave a Reply

You must be logged in to post a comment.