Home Tutorial Php Phpbeginners What is a PHP File?

 
 

Share on Google+Share on Google+
What is a PHP File?
Posted on: July 10, 2009 at 12:00 AM
Advertisement
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 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:

  • For testing the script on local server install Apache http server or WAMP Server for Windows machines; LAMP server for Linux machine; and MAMP server for MAC machine. These servers can be freely downloaded from the internet:

       http://httpd.apache.org/docs/2.0/en/install.html for Apache http server;
       www.wampserver.com/en/ for WAMP server;
       http://www.sawmac.com/mamp/ for MAMP server;

       The installation of LAMP server depends upon the Linux Distro. For instance          
       download and install LAMP server for Ubuntu from
       http://www.ubuntugeek.com/ubuntu-710-gutsy-gibbon-lamp-server-setup.html

  • Install the latest version of PHP, Currently PHP 5.2.10 and 5.3.0 is popular
  • For the database install MySQL

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.

Advertisement

Related Tags for What is a PHP File?:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: July 10, 2009

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com