Disable exec() in PHP

Discussion in 'Programming/Scripts' started by uli, Apr 26, 2005.

  1. uli

    uli New Member

    I'd like to disable the use of the exec() function in my PHP. Can this be done?

    Uli
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Yes, you can disable it in your php.ini. Search for the line

    Code:
    disable_functions =
    and change it:

    Code:
    disable_functions = exec
    Don't forget to restart Apache afterwards.
     
  3. uli

    uli New Member

    That's what I was looking for! :)
     

Share This Page