What is PHP?
PHP(short for Hypertext PreProcessor) is the most widely used open source and general purpose server side scripting language used mainly in web development to create dynamic websites and applications. It was developed in 1994 by Rasmus Lerdorf. A survey by W3Tech shows that almost 79% of the websites in their data are developed using PHP. It is not only used to build the web apps of many tech giants like Facebook but is also used to build many CMS (Content Management System) like WordPress, Drupal, Shopify, WooCommerce etc.
Why to use PHP?
PHP can actually do anything related to server-side scripting or more popularly known as the backend of a website. For example, PHP can receive data from forms, generate dynamic page content, can work with databases, create sessions, send and receive cookies, send emails etc. There are also many hash functions available in PHP to encrypt user’s data that makes PHP secure and reliable to be used as a server-side scripting language. So these are some of the abilities of PHP that makes it suitable to be used as server-side scripting language. You will get to know more of these abilities in further tutorials.
Even if you are not convinced by the above abilities of PHP, there are some more features of PHP. PHP can run on all major operating systems like Windows, Linux, Unix, Mac OS X etc. Almost all of the major servers available today like Apache supports PHP. PHP allows using wide range of databases. And the most important factor is that it is free to use and download and anyone can download PHP from its official source: www.php.net.
Who are using it?
- Big Tech Giants like Facebook, Slack, Lyft etc.
- Content Management System like WordPress, Drupal etc.
- E-Commerce Platforms like Magneto and many more.
- Platform Independent
- Open source and dynamic Library support
- Database Connectivity
- Easy to understand and code
- Gives Web Developer More Control
- Easy integration and consistency
- Why require_once() function is so bad to use in PHP ?
- Why use Guzzle Instead of cURL in PHP ?
- What is Web API and why we use it ?
- What is the best way to include CSS file? Why use @import?
- Why to use .html instead of .htm extension?
- Why do we use $rootScope.$broadcast in AngularJS?
- Why card images use data-src (not src) for image in Bootstrap 4 ?
- Why to check both isset() and !empty() function in PHP ?
- Why is === faster than == in PHP ?
- Why PHP script does not create a directory with 777 permissions ?
- Why does PHP 5.2+ disallow abstract static class methods ?
- How to use php serialize() and unserialize() Function
- What is the use of the @ symbol in PHP?
- How to use a switch case 'or' in PHP?
- What is the use of “=>” symbol in PHP ?
- When to use static vs instantiated classes in PHP?
- How to use bcrypt for hashing passwords in PHP?
- How to use PHP OPCache ?
- When to use self over $this in PHP ?
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.