Using the disable_functions directive
For security reasons, you may want to disable certain PHP functions. For example, the exec and system functions are particularly dangerous when they are used with unsanitized input values. To disable a function, use a text editor to modify the disable_functions directive in the php.ini file. This directive takes a comma-delimited list. For example, to disable the exec and system functions, use the following directive:More information
- To view a complete list of php.ini directives, please visit http://www.php.net/manual/en/ini.list.php.
- For more information about the disable_functions directive, please visit https://secure.php.net/manual/en/ini.core.php#ini.disable-functions.