Use PHPINFO to implement PHP configuration statistics process
Everyone knows that phpinfo() is used to display server configuration. It is a very useful tool after installing a new server, and it is a very useful tool for communicating with various administrators.
Of course, after use, it is usually removed or only provided to a small number of people. Indeed, phpinfo itself may be very dangerous. Sometimes it even has XSS injection flaws. Even when you feel safe, phpinfo will expose some of your configuration constructs, so it is recommended to stay away from it.
It is a pity that it is a very common thing to use the phpinfo page as part of the web server, and search engines often pick up its information. There are thousands of phpinfo() pages in on various search engines such as yahoo. Just search 'phpinfo()' 'GoogleBot' and "Zend Scripting Language Engine" on your yahoo to see them. See Ilia's article - How to protect your phpinfo() Reliably locating phpinfo (18 visites)).
Of course on the other hand, being able to collect so much phpinfo information around the world is a huge asset for us. Once we have the URL address, we just download the phpinfo() file, then we parse it and store it as the corresponding data, that's what I'm doing.
I got 12000 phpinfo() on the intranet. 11,048 of them are cited here. 11,000 is only a drop in the ocean among the millions of php sites. But compared with the number in search engines such as Google, it also accounts for 1%, so it can also represent some opinions.
How much information can we get from these databases? Is this just an interesting and ordinary connection? Many people think that obtaining phpinfo information in search engines is not too easy, and even requires a certain amount of luck. . This certainty is not a good thing. In fact, let me teach you how to search your website's phpinfo page using this format 'phpinfo site:yoursite.com' and you will be very surprised.
On the other hand 11000 is a pretty big amount. After collecting this phpinfo information, I used it to compare the distribution and quantity information of various php versions. 87% of them are pretty good. Overall, the information is fairly representative.
Okay, after ending the long introduction above, we got some interesting data from this information. Finally, phpinfo contains a lot of information. I used them as templates to extract some crossover content.
Ending
The configuration data is always so unexpected or expected. After reading this data, we found that there are still many areas that need guidance.
Generally speaking, many configurations are very common values. We found that many people who develop with Php have not understood the contents of the php.ini file in detail and understand it...
Related articles:
Why was it modified? php.ini but phpinfo() has not changed
How to block the phpinfo() function
Local Value (local variable) Master in phpinfo The difference between Value (main variable)

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Interpret the encoding modification method in the PHP.ini file. The PHP.ini file is a PHP configuration file. You can configure the PHP running environment by modifying the parameters in it. The encoding settings are also very important, and play an important role in processing Chinese characters, web page encoding, etc. This article will introduce in detail how to modify encoding-related configurations in the PHP.ini file, and give specific code examples for reference. View the current encoding settings: In the PHP.ini file, you can search for the following two related parameters

PHP time zone configuration errors are a common problem. When date and time related functions are involved in PHP code, it is very important to configure the time zone correctly. If the time zone configuration is incorrect, the date and time display may be inaccurate or other problems may occur. Solving PHP time zone configuration errors requires specifying the correct time zone by setting the date_default_timezone_set() function. Here is a specific code example:

In the Ubuntu system, PHP-FPM is a commonly used PHPFastCGI process manager, used to handle the running of PHP programs. However, in some cases, PHP-FPM may be missing, causing PHP to fail to run properly. This article will introduce how to deal with the lack of PHP-FPM in Ubuntu and provide specific code examples. Problem Description When installing PHP in Ubuntu system and enabling PHP

How to change the encoding settings in PHP.ini requires specific code examples. In PHP development, character encoding is a very important issue. Correct character encoding settings ensure correct transmission and display of data. The PHP.ini file is the configuration file of PHP. By modifying the PHP.ini file we can make some global configurations, including character encoding settings. Below we will explain in detail how to change the encoding settings in the PHP.ini file, and attach a code example. Step 1: Find PHP.ini

MySQL is one of the most widely used database servers today, and PHP, as a popular server-side programming language, its applications usually interact with MySQL. Under high load conditions, MySQL performance will be greatly affected. At this time, PHP configuration needs to be adjusted to improve MySQL performance and thereby increase the response speed of the application. This article will introduce how to improve MySQL performance through PHP configuration. To configure PHP.ini, you first need to open the PHP configuration file (PHP.ini), so that you can change

Thesession.gc_maxlifetimesettinginPHPdeterminesthelifespanofsessiondata,setinseconds.1)It'sconfiguredinphp.iniorviaini_set().2)Abalanceisneededtoavoidperformanceissuesandunexpectedlogouts.3)PHP'sgarbagecollectionisprobabilistic,influencedbygc_probabi

Configuration and optimization of PHP in the Kangle server environment. Kangle is a stable and efficient server software. Many websites choose to run in the Kangle environment. As a popular server-side scripting language, PHP is often used with Kangle. This article will introduce how to configure and optimize PHP in the Kangle server environment to improve the performance and security of the website. 1. PHP configuration 1. Find the php.ini file in the Kangle server. The PHP configuration file is usually

How to configure and use Memcache in PHP Memcache is a commonly used memory caching system that can be used to speed up website access and reduce database pressure. Configuring and using Memcache in PHP is very simple, detailed steps and code examples are described below. Step 1: Install and start Memcache Before starting, you first need to install and start Memcache in your system. It can be installed on Ubuntu via: sudoapt-get
