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

Turning Customer Feedback into Actionable Insights
December 30, 2024

Turning Customer Feedback

Omnichannel Marketing: What It Is and How to Get Started
December 29, 2024

Omnichannel Marketing: Wh

The Role of AI in Personalizing Customer Experiences
December 28, 2024

The Role of AI in Persona

Intuit Mailchimp