What is phpinfo.php

  • Home What is phpinfo.php
What is phpinfo.php

What is phpinfo.php

October 27, 2012

PHPinfo.php in a command file in php. When run it will give you all sorts of specific details about which version of php you are running and how it is configured.

To run this command file, create a php file on your server (Example: phpinfo.php) and put the following code on it:

<?php phpinfo(); ?>

You must then navigate to the same file on your website:
Example: https://www.somewebsite.com/phpinfo.php

This will cause a page of dynamically generated configuration information to be output.

Important Note: For security purposes, you should never leave this file on your website server. This information gives out certain details about your hosting that hackers may use to help them gain access to your website.

If you must keep this file on your website then rename it to something other than phpinfo.php.

Better yet, be really tricky and create a totally fake phpinfo.php page with totally bogus information and leave it on your website. This will confuse the hackers and keep them spinning their wheels until they give up.
Example: https://www.computer-geek.net/phpinfo.php

To Make a Request For Further Information

5K

Happy Clients

12,800+

Cups Of Coffee

5K

Finished Projects

72+

Awards
TESTIMONIALS

What Our Clients
Are Saying About Us

Get a
Free Consultation


LATEST ARTICLES

See Our Latest
Blog Posts

How to Start a Successful Podcast
October 29, 2024

How to Start a Successful

Tips for Improving Remote Team Collaboration
October 27, 2024

Tips for Improving Remote

Intuit Mailchimp