Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.55 KB

Php.md

File metadata and controls

35 lines (24 loc) · 1.55 KB

PHP

  • PHP (PHP Hypertext Preprocessor) is one of the most popular languages used for web application development.

  • First release in 1995 as a Personal Home Page Tool (PHP) by Rasmus Lerdorf

  • Offical website www.php.net

  • Server Stack Packages

    • WAMP (Windows, Apache, MySQL/MariaDB, PHP),
    • LAMP (Linux, Apache, MySQL/MariaDB, PHP),
    • MAMP (Mac, Apache, MySQL/MariaDB, PHP)
  • PHP 7 also replaces fatal errors, which previously would crash a program, with exceptions that can be handled within the program itself.

  • using Facebook’s HHVM (Hip Hop Virtual Machine) which converts PHP code into C++ code which can then be executed for better performance.

  • With the introduction of PHP 8, code is compiled using a JIT (just-in-time) compiler.

  • The @ operator, which you may have seen in older PHP code, is removed.

  • JavaScript code is downloaded to the user’s computer. It is interpreted and executed within the browser. PHP code resides on a web server. The code is also interpreted and executed, but within the web server, not by the browser.

  • There are many web servers that will work with PHP and MySQL/MariaDB databases.

  • AJAX (Asynchronous JavaScript and XML) provides the ability to dynamically change portions of a web page without reloading the complete page.