A phpinfo page contains a simple PHP script. The purpose of a phpinfo file is to show you how php is configured in your server. You can create a phpinfo file and place it anywhere under your account to view the current PHP configuration of your server.

Make sure your server supports PHP.

STEP 1: Open your favorite text editor like notepad.
STEP 2: Copy and paste the following code into a blank notepad:

<?php

phpinfo();

?>

STEP 3: Save this file as phpinfo.php
STEP 4: Now upload this file to your website using your favorite FTP Client.
STEP 5: To access this file browse the location where you uploaded the file Example
http://domain.com/phpinfo.php