What Is A PHPINFO.PHP File? This Will Show How To Create

this page contains information on how to create a PHP information file very easy steps to follow using simple tools like notepad to create a simple example of php file step by step

What is a phpinfo.php file you might be asking. It is one of the most important programming language you can have to troubleshoot some of your scripts. If your website is being hosted on an Apache server, then mostly likely you will have PHP installed.

1. What is PHP?

PHP is a programming language to make dynamic websites. by dynammic I mean it changes. It is used along with MySQL database. You can generate HTML by creating PHP code. Other similar programming language include .ASP from Microsoft, Java from Oracle. Dont confuse JAVA with Javascript. Javascript is not like PHP in the sense where the environment it performs at. The PHP Language is an HTML-embedded Server Side scripting language. Alot of its syntax is borrowed from the C Language, Java and Perl for example are a couple of unique PHP-specific features which are included . The final goal of PHP is to let web developers to code dynamically generated pages very quickly.

2. What does PHP stand for?

The PHP letters stands for PHP.Hypertext.Preprocessor. Dont get confuse because the first word of the acronym is the acronym of itself. the acronym is called a recursive acronym, look it up if you dont beleive me.

Follow this step by step guide tutorial on how to create your own phpinfo.php file.

STEP 1: Open your favorite text editor. If you have a Windows PC, you can use notepad. For this example, I will be using notepad.

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


<?php

phpinfo();

?>


STEP 3: Save this file as "phpinfo.php" (include the quotes)

STEP 4: Upload file to your website.

STEP 5: Pull the file with your browser (Example: http://www.DOMAIN.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

 

 

phpinfo example file

 

 

 

8860 - Sat Feb 02, 2013 22:11:24