You are reading this article as you want to know howto create a phpinfo file on your hosting account.
Installing a phpinfo file on your hosting is a security risk as it exposes server information to the public so we advise that if you add a PHPinfo file to your server, lock it down correctly or delete it after use. |
1. Create a file on your site called phpinfo.php (or another preferred name)
2. In the file add the code below
<?php
phpinfo()
?>
3. Upload file to your site like http://yoursite.com/phpinfo.php
4. Browse to http://yoursite.com/phpinfo.php and view the PHP information
5. For security, DELETE the phpinfo.php when you are finished.