How To Create A PHP Info Page:
To view your current PHP version , configuration and such, you will need to create a PHP info page.
Assuming your website is under /home/username/public_html
:
- Create a new file under that directory. Name it something like
phpinfo.php
. - Insert the following code into the file:
<?php phpinfo(); ?>
- Access the file through your browser like so:
http://your-domain/phpinfo.php
Your current PHP configuration will be displayed. The values listed here can be helpful when you are troubleshooting a PHP-related issue.