Chapter 22. Safe Mode
Table of Contents
Security and Safe Mode
Functions restricted/disabled by safe mode
The PHP safe mode is an attempt to solve the shared-server
security problem. It is architecturally incorrect to try to
solve this problem at the PHP level, but since the alternatives
at the web server and OS levels aren't very realistic, many
people, especially ISP's, use safe mode for now.
Security and Safe Mode
Table 22-1. Security and Safe Mode Configuration Directives
Name Default Changeable
safe_mode "0" PHP_INI_SYSTEM
safe_mode_gid "0" PHP_INI_SYSTEM
safe_mode_include_dir NULL PHP_INI_SYSTEM
safe_mode_exec_dir "" PHP_INI_SYSTEM
safe_mode_allowed_env_vars PHP_ PHP_INI_SYSTEM
safe_mode_protected_env_vars LD_LIBRARY_PATH PHP_INI_SYSTEM
open_basedir NULL PHP_INI_SYSTEM
disable_functions "" PHP_INI_SYSTEM
disable_classes "" PHP_INI_SYSTEM
For further details and definition of the PHP_INI_* constants
see ini_set().
Here's a short explanation of the configuration directives.
|