phpinfo is to output PHP configuration
How to Create phpinfo File?
- Navigate to your server public_html directory
- Create your file "phpinfo.php"
- Copy the following script code into the "phpinfo.php":
<?php
phpinfo();
?>
- After creating "phpinfo.php" file in your public_html directory. You can access the file by adding /phpinfo.php at the end of your domain name. To access phpinfo for example as following:
https://yourdomain.com/phpinfo.php
As you can see, simply add phpinfo function phpinfo(); comand into your file.