Using Phpinfo to implement the PHP configuration statistics process

Source: Internet
Author: User
Tags phpinfo
Everyone knows that the phpinfo (), which is used to display the server configuration, is a very useful tool for installing a new server, and is a very useful tool to communicate with various managers.

Of course, after use, it is usually removed or simply provided to a small number of people, indeed, phpinfo itself may be very dangerous. Sometimes he even has a flaw in XSS injections. Even when you feel safe, phpinfo will also make some of your configuration public, so it is recommended to keep it away.

It is a pity that the Phpinfo page is now a part of the Web server is a very common thing, and the search engine also often to pick up its information, there are thousands of phpinfo () on various search engines such as Yahoo. Just search on your yahoo! ' phpinfo () ' GoogleBot ' and ' Zend Scripting Language Engine ' to see them. See Ilia's article-How to Protect your phpinfo () reliably locating phpinfo (visites)).

Of course, on the other side, the ability to collect so much phpinfo information around the world is a considerable asset to us. Once we get the URL address, we just need to download the phpinfo () file, and then we analyze it and store it as the corresponding data, and that's what I'm doing.

I got 12,000 phpinfo () on the intrenet. Here are some of the 11,048 useful references. 11000 in the number of millions of PHP sites can only be considered bucket. However, compared with the number of search engines such as Google, also accounted for 1%, so can also represent a number of views.

How much information can we get from these databases? Is this just an interesting, regular connection? Many people think that it is not easy to get phpinfo information in search engines, and even need some luck. This determination is not a good thing. In fact, let me show you how to search your website's phpinfo page, use this format ' Phpinfo site:yoursite.com ' and then you'll be surprised.

On the other hand 11000 is a quite large quantity. After collecting these phpinfo information, I used to compare the distribution and quantity information of various PHP versions. 87% of them are pretty good. Overall, this information is quite representative.

Well, after such a long introduction, we've got some interesting data from these materials. Finally, Phpinfo contains a lot of information. I took them as templates to extract some of the cross-sections.

End

Configuration data is always unexpected or predictable. After reading this data, we find that there are still a lot of places that need guidance.

In general, many configurations are very generic values. We found that in PHP developers, many people do not have a detailed understanding of the contents of the php.ini file, and understand it ...

Related articles:

Why modified php.ini but phpinfo () did not change

How to block out the phpinfo () function

The difference between the local value (local variable) master value (primary variable) in Phpinfo

  • 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.