Php. ini disable phpinfo () from running method _ PHP Tutorial

Source: Internet
Author: User
Tags phpinfo php
Php. ini: disable phpinfo () from running methods. We only need to add disable_functionsphpinfophp.ini in the php Tutorial. ini to introduce a function disable_functions, which is useful and can be used to disable some functions. For example, we only need to add

Disable_functions = phpinfo


The disable_functions function is introduced in php. ini, which is useful and can be used to disable some functions. For example, if disable_functions = passthru exec system popen is added to php. ini, the system () has been disabled for security reasons prompt will be displayed when these functions are executed, and the program stops running.


More details

Search for disable_functions and replace it with the following
Disable_functions = phpinfo, exec, passthru, shell_exec, system, proc_open, popen, curl_exec, curl_multi_exec, parse_ini_file, show_source


When disable_functions = phpinfo php. ini introduces a function called disable_functions, which is useful and can be used to disable some functions. For example...

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.