Php-functions restricted or blocked by security mode

Source: Internet
Author: User
PHP features-security mode-limited by security mode or blocked function security mode function Daquan

Dbmopen: Check whether the operated file or directory has the same UID (owner) as the executed script ).

Dbase_open: Check whether the operated file or directory has the same UID (owner) as the executed script ).

Filepro: Check whether the operated file or directory has the same UID (owner) as the executed script ).

Filepro_rowcount: Check whether the operated file or directory has the same UID (owner) as the executed script ).

Filepro_retrieve: Check whether the operated file or directory has the same UID (owner) as the executed script ).

Ifx _ * SQL _safe_mode limit ,(! = Safe mode)

Ingres _ * SQL _safe_mode limit ,(! = Safe mode)

Mysql _ * SQL _safe_mode limit ,(! = Safe mode)

Pg_loimport: Check whether the operated file or directory has the same UID (owner) as the executed script ).

Posix_mkfifo: Check whether the operated directory has the same UID (owner) as the executed script ).

Putenv: Follow the safe_mode_protected_env_vars and safe_mode_allowed_env_vars options set by ini. See the putenv () function documentation.

Move_uploaded_file: Check whether the operated file or directory has the same UID (owner) as the executed script ).

Chdir: Check whether the operated directory has the same UID (owner) as the executed script ).

Dl: This function cannot be used when PHP runs in safe mode.

Backtick operator this function is not available when PHP runs in safe mode.

Shell_exec: (the function is the same as the backticks function) this function cannot be used when PHP runs in safe mode.

Exec: only operations can be performed in the directory set by safe_mode_exec_dir. For some reason, it cannot be used in the path of the executable object. Escapeshellcmd () will be applied to the parameters of this function.

System: only operations can be performed in the directory set by safe_mode_exec_dir. For some reason, it cannot be used in the path of the executable object.

Escapeshellcmd: the parameter that will be applied to this function.

Passthru: only operations can be performed in the directory set by safe_mode_exec_dir. For some reason, it cannot be used in the path of the executable object.

Escapeshellcmd: the parameter that will be applied to this function.

Popen: only operations can be performed in the directory set by safe_mode_exec_dir. For some reason, it cannot be used in the path of the executable object.

Escapeshellcmd: the parameter that will be applied to this function.

Fopen: Check whether the operated directory has the same UID (owner) as the executed script ).

Mkdir: Check whether the operated directory has the same UID (owner) as the executed script ).

Rmdir: Check whether the operated directory has the same UID (owner) as the executed script ).

Rename: Check whether the operated file or directory has the same UID (owner) as the executed script ). Check whether the operated directory has the same UID (owner) as the executed script ).

Unlink: Check whether the operated file or directory has the same UID (owner) as the executed script ). Check whether the operated directory has the same UID (owner) as the executed script ).

Copy: Check whether the operated file or directory has the same UID (owner) as the executed script ). Check whether the operated directory has the same UID (owner) as the executed script ). (On source and target)

Chgrp: Check whether the operated file or directory has the same UID (owner) as the executed script ).

Chown: Check whether the operated file or directory has the same UID (owner) as the executed script ).

Chmod: Check whether the operated file or directory has the same UID (owner) as the executed script ). In addition, SUID, SGID, and sticky bits cannot be set.
Touch () checks whether the operated file or directory has the same UID (owner) as the executed script ). Check whether the operated directory has the same UID (owner) as the executed script ).

Symlink: Check whether the operated file or directory has the same UID (owner) as the executed script ). Check whether the operated directory has the same UID (owner) as the executed script ). (Note: Only test target)

Link: Check whether the operated file or directory has the same UID (owner) as the executed script ). Check whether the operated directory has the same UID (owner) as the executed script ). (Note: Only test target ),

Apache_request_headers: in security mode, headers starting with "authorization" (case sensitive) are not returned. ,

Header: in safe mode, if WWW-Authenticate is set, the uid of the current script will be added to the realm part of the header.

In safe mode, PHP_AUTH_USER, PHP_AUTH_PW, and PHP_AUTH_TYPE are not available in $ _ SERVER. However, you can still use REMOTE_USER to obtain the USER name ). (Note: it is valid only after PHP 4.3.0)

Highlight_file and show_source: Check whether the operated file or directory has the same UID (owner) as the executed script ). Check whether the operated directory has the same UID (owner) as the executed script ). (Note: it is only valid after version 4.2.1)

Parse_ini_file: Check whether the operated file or directory has the same UID (owner) as the executed script ). Check whether the operated directory has the same UID (owner) as the executed script ). (Note: it is only valid after version 4.2.1)

Set_time_limit: it does not work in safe mode.

Max_execution_time does not work in safe mode.

Mail: in safe mode, the fifth parameter is blocked. (Note: only affected since PHP 4.2.3)

Session_start: Check whether the operated file or directory has the same UID (owner) as the executed script ). Check whether the operated directory has the same UID (owner) as the executed script ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.