PHP K�sikirja
Edellinen | Luku 42. Safe Mode | Seuraava

# Functions restricted/disabled by safe mode

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

Taulu 42-2. Safe mode limited functions

Function | Limitations
--- | ---
dbmopen() | Tarkistaa onko k�sitelt�vill� tiedostoilla/hakemistoilla sama UID kuin ajettavalla skriptill�.
dbase_open() | Tarkistaa onko k�sitelt�vill� tiedostoilla/hakemistoilla sama UID kuin ajettavalla skriptill�.
filepro() | Tarkistaa onko k�sitelt�vill� tiedostoilla/hakemistoilla sama UID kuin ajettavalla skriptill�.
filepro_rowcount() | Tarkistaa onko k�sitelt�vill� tiedostoilla/hakemistoilla sama UID kuin ajettavalla skriptill�.
filepro_retrieve() | Tarkistaa onko k�sitelt�vill� tiedostoilla/hakemistoilla sama UID kuin ajettavalla skriptill�.
ifx_* | sql_safe_mode restrictions, (!= safe mode)
ingres_* | sql_safe_mode restrictions, (!= safe mode)
mysql_* | sql_safe_mode restrictions, (!= safe mode)
pg_lo_import() | Tarkistaa onko k�sitelt�vill� tiedostoilla/hakemistoilla sama UID kuin ajettavalla skriptill�.
posix_mkfifo() | Tarkistaa onko hakemistolla, jossa operoidaan, sama UID kuin ajettavalla skriptill�.
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() | Tarkistaa onko k�sitelt�vill� tiedostoilla/hakemistoilla sama UID kuin ajettavalla skriptill�.
chdir() | Tarkistaa onko hakemistolla, jossa operoidaan, sama UID kuin ajettavalla skriptill�.
dl() | T�m� funktio ei ole k�yt�ss� jos safe mode on kytketty p��lle.
backtick operator | T�m� funktio ei ole k�yt�ss� jos safe mode on kytketty p��lle.
shell_exec() (functional equivalent of backticks) | T�m� funktio ei ole k�yt�ss� jos safe mode on kytketty p��lle.
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() | Tarkistaa onko hakemistolla, jossa operoidaan, sama UID kuin ajettavalla skriptill�.
mkdir() | Tarkistaa onko hakemistolla, jossa operoidaan, sama UID kuin ajettavalla skriptill�.
rmdir() | Tarkistaa onko hakemistolla, jossa operoidaan, sama UID kuin ajettavalla skriptill�.
rename() | Tarkistaa onko k�sitelt�vill� tiedostoilla/hakemistoilla sama UID kuin ajettavalla skriptill�. Tarkistaa onko hakemistolla, jossa operoidaan, sama UID kuin ajettavalla skriptill�.
unlink() | Tarkistaa onko k�sitelt�vill� tiedostoilla/hakemistoilla sama UID kuin ajettavalla skriptill�. Tarkistaa onko hakemistolla, jossa operoidaan, sama UID kuin ajettavalla skriptill�.
copy() | Tarkistaa onko k�sitelt�vill� tiedostoilla/hakemistoilla sama UID kuin ajettavalla skriptill�. Tarkistaa onko hakemistolla, jossa operoidaan, sama UID kuin ajettavalla skriptill�. (on source and target)
chgrp() | Tarkistaa onko k�sitelt�vill� tiedostoilla/hakemistoilla sama UID kuin ajettavalla skriptill�.
chown() | Tarkistaa onko k�sitelt�vill� tiedostoilla/hakemistoilla sama UID kuin ajettavalla skriptill�.
chmod() | Tarkistaa onko k�sitelt�vill� tiedostoilla/hakemistoilla sama UID kuin ajettavalla skriptill�. In addition, you cannot set the SUID, SGID and sticky bits
touch() | Tarkistaa onko k�sitelt�vill� tiedostoilla/hakemistoilla sama UID kuin ajettavalla skriptill�. Tarkistaa onko hakemistolla, jossa operoidaan, sama UID kuin ajettavalla skriptill�.
symlink() | Tarkistaa onko k�sitelt�vill� tiedostoilla/hakemistoilla sama UID kuin ajettavalla skriptill�. Tarkistaa onko hakemistolla, jossa operoidaan, sama UID kuin ajettavalla skriptill�. (note: only the target is checked)
link() | Tarkistaa onko k�sitelt�vill� tiedostoilla/hakemistoilla sama UID kuin ajettavalla skriptill�. Tarkistaa onko hakemistolla, jossa operoidaan, sama UID kuin ajettavalla skriptill�. (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() | Tarkistaa onko k�sitelt�vill� tiedostoilla/hakemistoilla sama UID kuin ajettavalla skriptill�. Tarkistaa onko hakemistolla, jossa operoidaan, sama UID kuin ajettavalla skriptill�. (note: only affected since PHP 4.2.1)
parse_ini_file() | Tarkistaa onko k�sitelt�vill� tiedostoilla/hakemistoilla sama UID kuin ajettavalla skriptill�. Tarkistaa onko hakemistolla, jossa operoidaan, sama UID kuin ajettavalla skriptill�. (note: only affected since PHP 4.2.1)
set_time_limit() | Has no affect when PHP is running in safe mode.
max_execution_time | Has no affect when PHP is running in safe mode.
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` | ??

Edellinen | Alkuun | Seuraava
Safe Mode | Ylös | Using PHP from the command line