How to make a phpinfo.php file tutorial

The purpose of a phpinfo.php file is to show you how your php is configured in your server. To create one all you have to do is the following:

The only requirement for this to work on your web pages is that you have PHP in your hosting. IF you don't have php, you can signup with www.webune.com for a php plan. if you have php, continue on...

STEP 1: Open your favorite text editor like notepad. I am using notepad in Windows XP for this tutorial.

STEP 2: Copy and paste the following code into a blank notepad:


     Code:
<?php

phpinfo();

?>



STEP 3: Save this file as phpinfo.php

STEP 4: Upload file to your website using your favorite FTP Client.

STEP 5: Once you have uploaded the phpinfo.php file. Pull the file with your browser to the location of your site where you uploaded the phpinfo.php file (Example: example.com/phpinfo.php)

STEP 6: After that, If you have PHP installed, you should see all the PHP configurations. All these configurations are located in a file called php.ini. For Redhat and Fedora Linux distributions its located in /etc/php.ini The page should look something like the image below



post picture