Follow these steps to create and view an info.php
file on your server:
info.php
.<?php // Show all information, defaults to INFO_ALL phpinfo(); ?>
Run the following command to create the file directly in your webroot:
nano /var/www/html/info.php
Add the code, save the file, and exit.
Create a text file named info.php
on your computer, insert the PHP code, and upload it to your website's root directory.
Open a browser and visit:
http://yourdomain.com/info.php
Powered by 9stats Ltd