A PHP file includes PHP code, functions, text HTML tags and scripts that can process online forms, get the date and time, or access information from a database, such as MySQL database. A PHP file returns to the browser as a plain HTML page and may have an extension of .php. The earlier version used the .php3 or .phtml extension.
2. What You Will Need?
Before going ahead in the next step, first you will have to install all the necessary software required for developing and testing the script. So, first install and configure your system from the following software:
The installation of LAMP server depends upon the Linux Distro. For instance
download and install LAMP server for Ubuntu from
You can also test your PHP script on web server which you have hosted, but it is very panic and needs FTP or telnet in every time you want to change something.
Recommend the tutorial