PHP is a general-purpose Server-Side Scripting Language originally designed for Web Development for dynamic web pages. PHP code is embedded into the HTML source document or PHP is an HTML-embedded scripting language and then interpreted by a web server with a PHP processor module, which generates the web page document.

Some Features of PHP:

  • PHP is a server-side scripting language, like old ASP.
  • PHP scripts are executed on the server
  • PHP supports many databases (MySQL, Informix, Oracle, Sybase, etc.)
  • PHP is an open source software
  • PHP is free to download and use

Advantages of PHP over ASP.NET:

  • Free
  • Open source
  • Easier to learn due to its basic scripting language structure and build in functionality
  • PHP5 now offers many object orientated development concepts
  • Runs on Apache server which is open source
  • Has multiple platform support
  • Marginally faster due to the overheads imposed by .Net’s Common Language Runtime, which is responsible for intermediate compilation of .Net’s many languages
  • Has a huge support base as it is open source