This article provides a guide for how to view server PHP environment with phpinfo.php.
View Server PHP Environment with phpinfo.php
The phpinfo() function outputs a huge amount of information about the system you're using, such as (for example):
- PHP Version
- PHO environment
- PHP options and extension available
- OS version
- predefined variables
- ... and many others...
Create phpinfo.php File
To create a phpinfo file, simply open a plain text file in your web space, name it phpinfo.php, and insert in it the following line:
<?php phpinfo(); ?>
Viewing the PHP Info
Access the following URL in the web browser: "http://yourwebaddress.com/phpinfo.php", replacing "yourwebaddress.com" with your actual domain name, to view the PHP information relating to your website.
Conclusion
You now know how to view server PHP environment with phpinfo.php.

👀 Choose SSD-powered VPS servers for increased speed, power, and security! Now 50% off- starting from only $3.19/mo.
