PDA

View Full Version : Disable exec() in PHP


uli
26th April 2005, 17:55
I'd like to disable the use of the exec() function in my PHP. Can this be done?

Uli

falko
26th April 2005, 18:17
Yes, you can disable it in your php.ini. Search for the line

disable_functions =

and change it:

disable_functions = exec

Don't forget to restart Apache afterwards.

uli
27th April 2005, 18:42
That's what I was looking for! :)