Parsing How to shield phpinfo () function in php _ PHP Tutorial

Source: Internet
Author: User
Resolve how to block the phpinfo () function in php. We usually write phpinfo () when configuring the php environment. This function is used to test whether the php environment is successfully installed. However, this function also brings security risks to the system, then, we often write phpinfo () when configuring the php environment. This function is used to test whether the php environment is successfully installed. However, this function also brings security risks to the system, so how can we turn off this function? The following describes a method:
Modify the php. ini file and find the following lines in it:,

The code is as follows:


Disable_functions =; This directive allows you to disable certain
; Functions for security reasons. It has es
; A comma separated list of function names.
; This directive is * NOT * affected by whether
; Safe Mode is turned on or off.


Write it
Disble_functions = phpinfo
Restart apache to block the phpinfo () function.

Success (); this function is used to test whether the php environment has been installed successfully. However, this function often brings security risks to the system...

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.