Home > Backend Development > PHP Tutorial > Use php.ini to disable some dangerous php functions_PHP tutorial

Use php.ini to disable some dangerous php functions_PHP tutorial

WBOY
Release: 2016-07-13 17:10:40
Original
997 people have browsed it

Many functions in our PHP are not used a lot of the time, and they pose great security problems to the website. Below we use the disable_functions switch option in PHP.ini to turn off some functions that are not needed.

If it is disabled, the following prompt will appear

Warning: phpinfo() has been disabled for security reasons

Shielding function example:

 代码如下 复制代码
disable_functions= phpinfo,dl, exec, system

Note: Some friends want to use disable_functions to disable the eval function. This cannot be disabled. As for the reason, I tell you that it is not a system function. You can check it for details.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/629661.htmlTechArticleA lot of the time, many functions in our php are not used, and they pose great security risks to the website. Question, let’s use the disable_functions switch option in PHP.ini to turn it off...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template