What Is PHP

PHP is a server-side scripting language. that is used to develop Static websites or Dynamic websites or Web applications. It’s an open source & widely used language.



 About PHP in Brief

  1. PHP is an acronym for “PHP: Hypertext Preprocessor”.
  2. The old name of PHP is Personal Home Page.
  3. PHP language is written in C.

A brief history of PHP

PHP was conceived sometime in the fall of 1994 by Rasmus Lerdorf. He developed this language for personal use, but at this time it is a widely used language. Developers are using PHP differently from the initial version.



They are using the PHP like framework and CMS versions.

CMS  like

  1. WordPress
  2. Magento
  3. Opencart
  4. Zencart
  5. Joomla
  6. Drupal

Frameworks are like



  1. Laravel
  2. Codeigniter
  3. Symphony
  4. Zend
  5. CakePHP
  6. Yii
  7. Phalcon
  8. FuelPHP
  9. Slim
  10. PHPixie

Advantages of PHP

  1. Simple – PHP is quite easy to learn and get started.
  2. Fast – PHP websites typically run very fast.
  3. Stable – PHP is stable since it has been in existence for a long time.
  4. Open-source and free – PHP is open source and free. It means that you don’t have to pay a license fee to use PHP to develop software products.
  5. Community support – PHP has an active online community that helps you whenever you face an issue.

 

How does PHP scripting work?

 

In generally PHP work with three different stage



Step-1. The web browser sends an HTTP request to the web server.

Step-2. The PHP preprocessor that locates on the web server processes PHP code to generate the HTML document.

Step-3. The web server sends the HTML document back to the web browser.



 

In the above processing a PHP script is carried out by the interpreter in four stages:

  1. lexical analysis (lexing).
  2. syntax analysis (parsing).
  3. compilation.
  4. execution.

If you want more on how the PHP interpreter works then click here



Tags: ,