Modify the configuration file, default to c:\windows directory
Safe Mode
The safe_mode function of php has restricted or disabled many functions, which can solve the security problems of php to a large extent. Find in the Safe Mode section:
safe_mode = Off
Change to:
safe_mode = On
This opens the safe_mode function. Some functions that can execute system commands shell_exec() and `` are prohibited, others
Some executing functions such as: exec(), system(), passthru(), popen() will be restricted to be executed only
safe_mode_exec_dir specifies the program in the directory.
disable_functions
If you are not very clear about the harm of some functions and have not used them, simply ban these functions. Find the following
OK:
disable_functions =
Add the function to be prohibited after "=", and separate multiple functions with " and ".
It will take effect immediately after restarting IIS.
Safe Mode
The safe_mode function of php has restricted or disabled many functions, which can solve the security problems of php to a large extent. Find in the Safe Mode section:
safe_mode = Off
Change to:
safe_mode = On
This opens the safe_mode function. Some functions that can execute system commands shell_exec() and `` are prohibited, others
Some executing functions such as: exec(), system(), passthru(), popen() will be restricted to be executed only
safe_mode_exec_dir specifies the program in the directory.
disable_functions
If you are not very clear about the harm of some functions and have not used them, simply ban these functions. Find the following
OK:
disable_functions =
Add the function to be prohibited after "=", and separate multiple functions with " and ".
It will take effect immediately after restarting IIS.