PHP is an acronym and stands for "PHP: Hypertext Preprocessor". PHP is a widely-used as one of the open source scripting language. It's scripts are executed on the server side. It is one of the open source language.

The function of PHP go along with :

  1. PHP files can contain text, HTML, CSS, JavaScript, and PHP code
  2. PHP code are executed on the server, and the result is returned to the browser as plain HTML.
  3. PHP files have extension ".php".

PHP code is usually processed by a PHP interpreter implemented as a module in the web server or as a common gateway interface (CGI) executable.

The web server combines the results of the interpreted and executed PHP code, which may be any type of data, including images, with the generated web page.

PHP is used for the following factors :

  • To create and generate dynamic page content.
  • To create, open, read, write, delete, and close files on the server.
  • By php we can collect form data.
  • Cookies can be sent and received by the PHP.
  • PHP can add, delete, modify data in your database system.
  • PHP can be used to control user-access.
  • PHP can encrypt data.

Factors of PHP :

  • PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)
  • PHP is compatible with almost all servers used today (Apache, IIS, etc.)
  • PHP supports a wide range of databases.
  • PHP is easy to learn and runs efficiently on the server side.

What distinguishes PHP from something like client-side JavaScript is that the code is executed on the server, generating HTML which is then sent to the client. The client would receive the results of running that script, but would not know what the underlying code was. You can even configure your web server to process all your HTML files with PHP, and then there's really no way that users can tell what you have up your sleeve.

The best things in using PHP are that it is extremely simple for a newcomer, but offers many advanced features for a professional programmer.