_php tips for functions that are disabled when PHP opens Safe mode

Source: Internet
Author: User
Copy Code code as follows:

<?php
Ini_set ("Safe_mode", true);
?>

Table 42-2. Safe Mode limit function

The
name of the function Limit
Dbmopen () Checks whether the file or directory being manipulated has the same UID (owner) as the script being executed.
Dbase_open () Checks whether the file or directory being manipulated has the same UID (owner) as the script being executed.
Filepro () Checks whether the file or directory being manipulated has the same UID (owner) as the script being executed.
Filepro_rowcount () Checks whether the file or directory being manipulated has the same UID (owner) as the script being executed.
Filepro_retrieve () Checks whether the file or directory being manipulated has the same UID (owner) as the script being executed.
Ifx_* Sql_safe_mode limit, (!= Safe mode)
Ingres_* Sql_safe_mode limit, (!= Safe mode)
Mysql_* Sql_safe_mode limit, (!= Safe mode)
Pg_loimport () Checks whether the file or directory being manipulated has the same UID (owner) as the script being executed.
Posix_mkfifo () Checks whether the directory being manipulated has the same UID (owner) as the script being executed.
Putenv () Follow the Safe_mode_protected_env_vars and Safe_mode_allowed_env_vars options set by the INI. Refer to the documentation for the putenv () function.
Move_uploaded_file () Checks whether the file or directory being manipulated has the same UID (owner) as the script being executed.
ChDir () Checks whether the directory being manipulated has the same UID (owner) as the script being executed.
DL () This function is disabled in Safe mode .
Backtick operator This function is disabled in Safe mode .
shell_exec ()(same function as backticks function) This function is disabled in Safe mode .
EXEC () You can perform operations only in the directory of the safe_mode_exec_dir settings. For some reason, it cannot be used in the path of an executable object at this time ... Escapeshellcmd () will be applied to the parameters of this function.
System () You can perform operations only in the directory of the safe_mode_exec_dir settings. For some reason, it cannot be used in the path of an executable object at this time ... Escapeshellcmd () will be applied to the parameters of this function.
PassThru () You can perform operations only in the directory of the safe_mode_exec_dir settings. For some reason, it cannot be used in the path of an executable object at this time ... Escapeshellcmd () will be applied to the parameters of this function.
Popen () You can perform operations only in the directory of the safe_mode_exec_dir settings. For some reason, it cannot be used in the path of an executable object at this time ... Escapeshellcmd () will be applied to the parameters of this function.
fopen () Checks whether the directory being manipulated has the same UID (owner) as the script being executed.
mkdir () Checks whether the directory being manipulated has the same UID (owner) as the script being executed.
RmDir () Checks whether the directory being manipulated has the same UID (owner) as the script being executed.
Rename () Checks whether the file or directory being manipulated has the same UID (owner) as the script being executed. Checks whether the directory being manipulated has the same UID (owner) as the script being executed.
Unlink () Checks whether the file or directory being manipulated has the same UID (owner) as the script being executed. Checks whether the directory being manipulated has the same UID (owner) as the script being executed.
Copy () Checks whether the file or directory being manipulated has the same UID (owner) as the script being executed. Checks whether the directory being manipulated has the same UID (owner) as the script being executed. (on source and target )
CHGRP () Checks whether the file or directory being manipulated has the same UID (owner) as the script being executed.
Chown () Checks whether the file or directory being manipulated has the same UID (owner) as the script being executed.
chmod () Checks whether the file or directory being manipulated has the same UID (owner) as the script being executed. Also, you cannot set SUID, SGID, and sticky bits
Touch () Checks whether the file or directory being manipulated has the same UID (owner) as the script being executed. Checks whether the directory being manipulated has the same UID (owner) as the script being executed.
Symlink () Checks whether the file or directory being manipulated has the same UID (owner) as the script being executed. Checks whether the directory being manipulated has the same UID (owner) as the script being executed. (Note: test target only)
Link () Checks whether the file or directory being manipulated has the same UID (owner) as the script being executed. Checks whether the directory being manipulated has the same UID (owner) as the script being executed. (Note: test target only)
Apache_request_headers () In safe mode, headers that begin with "authorization" (case-sensitive) will not be returned.
Header () In safe mode, if www-authenticateis set, the current script's UID will be added to the realm portion of the header.
Php_auth variable In safe mode, variables PHP_AUTH_USER , PHP_AUTH_PW and in, PHP_AUTH_TYPE are $_SERVER not available. However, you can still use REMOTE_USER to get the user name. (Note: Only PHP 4.3.0 available later)
highlight_file (), Show_source () Checks whether the file or directory being manipulated has the same UID (owner) as the script being executed. Checks whether the directory being manipulated has the same UID (owner) as the script being executed. (Note that this is only valid after version 4.2.1)
Parse_ini_file () Checks whether the file or directory being manipulated has the same UID (owner) as the script being executed. Checks whether the directory being manipulated has the same UID (owner) as the script being executed. (Note that this is only valid after version 4.2.1)
Set_time_limit () does not work in Safe Mode .
Max_execution_time does not work in Safe Mode .
Mail () In Safe mode, the fifth parameter is masked. (Note that only from PHP 4.2.3 is affected)
Any function that uses php4/main/fopen_wrappers.c ??

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.