Prev | Current Page 105 | Next

W. Jason Gilmore

"Beginning PHP and MySQL: From Novice to Professional"


safe_mode = On | Off
Scope: PHP_INI_SYSTEM; Default value: Off
Enabling the safe_mode directive results in PHP being run under the aforementioned
constraints.
safe_mode_gid = On | Off
Scope: PHP_INI_SYSTEM; Default value: Off
When safe mode is enabled, an enabled safe_mode_gid enforces a GID (group ID)
check when opening files. When safe_mode_gid is disabled, a more restrictive UID
(user ID) check is enforced.
safe_mode_include_dir = string
Scope: PHP_INI_SYSTEM; Default value: NULL
The safe_mode_include_dir provides a safe haven from the UID/GID checks
enforced when safe_mode and potentially safe_mode_gid are enabled. UID/GID
checks are ignored when files are opened from the assigned directory.
36 CHAPTER 2 ?–  CONFIGURING YOUR ENV IRONMENT
safe_mode_exec_dir = string
Scope: PHP_INI_SYSTEM; Default value: NULL
When safe mode is enabled, the safe_mode_exec_dir parameter restricts execution
of executables via the exec() function to the assigned directory. For example, if you
want to restrict execution to functions found in /usr/local/bin, you use this directive:
safe_mode_exec_dir = "/usr/local/bin"
safe_mode_allowed_env_vars = string
Scope: PHP_INI_SYSTEM; Default value: PHP_
When safe mode is enabled, you can restrict which operating system??“level environment
variables users can modify through PHP scripts with the safe_mode_allowed_
env_vars directive.


Pages:
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117