PHP ��U
前一頁 | 章 42. Safe Mode | 下一頁

# Functions restricted/disabled by safe mode

This is a still probably incomplete and possibly incorrect listing of the functions limited by safe mode.

表格 42-2. Safe mode limited functions

Function | Limitations
--- | ---
dbmopen() | �ˬd��檺�}�M�n�ާ@�ؿ���ɮ׬O�_�ۦP�UID(�֦��)�C
dbase_open() | �ˬd��檺�}�M�n�ާ@�ؿ���ɮ׬O�_�ۦP�UID(�֦��)�C
filepro() | �ˬd��檺�}�M�n�ާ@�ؿ���ɮ׬O�_�ۦP�UID(�֦��)�C
filepro_rowcount() | �ˬd��檺�}�M�n�ާ@�ؿ���ɮ׬O�_�ۦP�UID(�֦��)�C
filepro_retrieve() | �ˬd��檺�}�M�n�ާ@�ؿ���ɮ׬O�_�ۦP�UID(�֦��)�C
ifx_* | sql_safe_mode restrictions, (!= safe mode)
ingres_* | sql_safe_mode restrictions, (!= safe mode)
mysql_* | sql_safe_mode restrictions, (!= safe mode)
pg_lo_import() | �ˬd��檺�}�M�n�ާ@�ؿ���ɮ׬O�_�ۦP�UID(�֦��)�C
posix_mkfifo() | �ˬd��檺�}�M�n�ާ@�ؿ�O�_�ۦP�UID(�֦��)�C
putenv() | Obeys the safe_mode_protected_env_vars and safe_mode_allowed_env_vars ini-directives. See also the documentation on putenv()
move_uploaded_file() | �ˬd��檺�}�M�n�ާ@�ؿ���ɮ׬O�_�ۦP�UID(�֦��)�C
chdir() | �ˬd��檺�}�M�n�ާ@�ؿ�O�_�ۦP�UID(�֦��)�C
dl() | �o�Ө�Ʀb�w��Ҧ��S�@�ΡC
backtick operator | �o�Ө�Ʀb�w��Ҧ��S�@�ΡC
shell_exec() (functional equivalent of backticks) | �o�Ө�Ʀb�w��Ҧ��S�@�ΡC
exec() | You can only execute executables within the safe_mode_exec_dir. For practical reasons it's currently not allowed to have .. components in the path to the executable. escapeshellcmd() is executed on the argument of this function.
system() | You can only execute executables within the safe_mode_exec_dir. For practical reasons it's currently not allowed to have .. components in the path to the executable. escapeshellcmd() is executed on the argument of this function.
passthru() | You can only execute executables within the safe_mode_exec_dir. For practical reasons it's currently not allowed to have .. components in the path to the executable. escapeshellcmd() is executed on the argument of this function.
popen() | You can only execute executables within the safe_mode_exec_dir. For practical reasons it's currently not allowed to have .. components in the path to the executable. escapeshellcmd() is executed on the argument of this function.
fopen() | �ˬd��檺�}�M�n�ާ@�ؿ�O�_�ۦP�UID(�֦��)�C
mkdir() | �ˬd��檺�}�M�n�ާ@�ؿ�O�_�ۦP�UID(�֦��)�C
rmdir() | �ˬd��檺�}�M�n�ާ@�ؿ�O�_�ۦP�UID(�֦��)�C
rename() | �ˬd��檺�}�M�n�ާ@�ؿ���ɮ׬O�_�ۦP�UID(�֦��)�C �ˬd��檺�}�M�n�ާ@�ؿ�O�_�ۦP�UID(�֦��)�C
unlink() | �ˬd��檺�}�M�n�ާ@�ؿ���ɮ׬O�_�ۦP�UID(�֦��)�C �ˬd��檺�}�M�n�ާ@�ؿ�O�_�ۦP�UID(�֦��)�C
copy() | �ˬd��檺�}�M�n�ާ@�ؿ���ɮ׬O�_�ۦP�UID(�֦��)�C �ˬd��檺�}�M�n�ާ@�ؿ�O�_�ۦP�UID(�֦��)�C (on source and target)
chgrp() | �ˬd��檺�}�M�n�ާ@�ؿ���ɮ׬O�_�ۦP�UID(�֦��)�C
chown() | �ˬd��檺�}�M�n�ާ@�ؿ���ɮ׬O�_�ۦP�UID(�֦��)�C
chmod() | �ˬd��檺�}�M�n�ާ@�ؿ���ɮ׬O�_�ۦP�UID(�֦��)�C In addition, you cannot set the SUID, SGID and sticky bits
touch() | �ˬd��檺�}�M�n�ާ@�ؿ���ɮ׬O�_�ۦP�UID(�֦��)�C �ˬd��檺�}�M�n�ާ@�ؿ�O�_�ۦP�UID(�֦��)�C
symlink() | �ˬd��檺�}�M�n�ާ@�ؿ���ɮ׬O�_�ۦP�UID(�֦��)�C �ˬd��檺�}�M�n�ާ@�ؿ�O�_�ۦP�UID(�֦��)�C (note: only the target is checked)
link() | �ˬd��檺�}�M�n�ާ@�ؿ���ɮ׬O�_�ۦP�UID(�֦��)�C �ˬd��檺�}�M�n�ާ@�ؿ�O�_�ۦP�UID(�֦��)�C (note: only the target is checked)
apache_request_headers() | In safe mode, headers beginning with 'authorization' (case-insensitive) will not be returned.
header() | In safe mode, the uid of the script is added to the realm part of the WWW-Authenticate header if you set this header (used for HTTP Authentication).
PHP_AUTH variables | In safe mode, the variables PHP_AUTH_USER, PHP_AUTH_PW, and AUTH_TYPE are not available in $_SERVER. Regardless, you can still use REMOTE_USER for the USER. (note: only affected since PHP 4.3.0)
highlight_file(), show_source() | �ˬd��檺�}�M�n�ާ@�ؿ���ɮ׬O�_�ۦP�UID(�֦��)�C �ˬd��檺�}�M�n�ާ@�ؿ�O�_�ۦP�UID(�֦��)�C (note: only affected since PHP 4.2.1)
parse_ini_file() | �ˬd��檺�}�M�n�ާ@�ؿ���ɮ׬O�_�ۦP�UID(�֦��)�C �ˬd��檺�}�M�n�ާ@�ؿ�O�_�ۦP�UID(�֦��)�C (note: only affected since PHP 4.2.1)
set_time_limit() | Has no effect when PHP is running in �w��Ҧ�.
max_execution_time | Has no effect when PHP is running in �w��Ҧ�.
mail() | In safe mode, the fifth parameter is disabled. (note: only affected since PHP 4.2.3)
Any function that uses `php4/main/fopen_wrappers.c` | ??

前一頁 | 內容 | 下一頁
Safe Mode | 上一層 | Using PHP from the command line