Friday 21 November 2014

What is PHP??

PHP is a popular scripting language now-a-days in web development. Its a recursive acronym for PHP: Hypertext Preprocessor. Its is completely open source and used for general purpose scripting.
Its basically called as a server side scripting language. It is originally derived from PHP: Personal Home Page.
PHP is an alternative to Microsft's ASP(Active Server Pages). Like in ASP, the PHP script is embedded in a webpage along with HTML. Before the page is sent to a user that has requested it, the webserver calls php to interpret and perform the operations called for in the php script.

The Html file that includes php script is typically given a file name with extension as .php or .php3 or .phtml. Like ASP, it is also thought of as "dynamic HTML pages", since content will vary based on the results of interpreting the script.

Here are few advantages of using php
  1. It is mainly helpful to generate a webpage dynamically.
  2. It supports a wide range of databases
  3. Its is used to send mails
  4. It is very helpful in file handling
  5. It also encrypts data
  6. It can be used to control user-access
  7. It can be able to create sessions
  8. It can send and receive cookies
  9. It can collect form data
  10. It is also used to output images, PDF Files, XML etc.