PHP: saves the server PHPInfo information into a file.

Source: Internet
Author: User
As webmasters or developers, we are particularly concerned with the PHPinfo of our virtual hosts, because it shows the libraries opened in the PHP environment and whether an important function is supported. These are generally viewed online: Put a probe file on the server, and open its absolute path on the browser to view the corresponding data. Do this

As webmasters or developers, we are particularly concerned with the PHPinfo of our virtual hosts, because it shows the libraries opened in the PHP environment and whether an important function is supported. These are generally viewed online: Put a probe file on the server, and open its absolute path on the browser to view the corresponding data. Do this

As webmasters or developers, we are particularly concerned with the PHPinfo of our virtual hosts, because it shows the libraries opened in the PHP environment and whether an important function is supported. These are generally viewed online: Put a probe file on the server, and open its absolute path on the browser to view the corresponding data. This is risky because the probe access is unrestricted. It is not a good thing if it is targeted by hackers. Therefore, it is best to save the new PHPInfo information as a file, and then download it to your local computer to view it, so that the probe is not displayed online. How are these files generated. Let's take a look !!

 ??

I have mentioned an article "generating RSS files in PHP" and an example of reading the database and outputting RSS. You can also replace phpinfo with the code that outputs RSS, in this way, RSS can be saved as a file. Specific usage: savePHPInfotoFile ('sitemap. xml !!

Statement: This article uses BY-NC-SA protocol for authorization | IT passers-
Reprinted please note

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.