I'd like to disable the use of the exec() function in my PHP. Can this be done?
Yes, you can disable it in your php.ini. Search for the line:
disable_functions =
and change it to:
disable_functions = exec
Don't forget to restart Apache afterwards.
Опубликовано: 27.08.2026
Yes, you can disable it in your php.ini. Search for the line:
disable_functions =
and change it to:
disable_functions = exec
Don't forget to restart Apache afterwards.
// Больше статей и поиск — в нашем Telegram-боте.