Open In App

PHP Introduction

The term PHP is an acronym for – Hypertext Preprocessor. PHP is a server-side scripting language designed specifically for web development. It is open-source which means it is free to download and use. It is very simple to learn and use. The file extension of PHP is “.php”. 

PHP was introduced by Rasmus Lerdorf in the first version and participated in the later versions. It is an interpreted language and it does not require a compiler. 



Characteristics of PHP

Origin and History

Purpose of using PHP

Syntax

<?php 
    PHP code goes here 
?>

Example:




<html>
    
   <head>
      <title>PHP Hello World</title>
   </head>
    
   <body>
      <?php echo "Hello, World! This is PHP code";?>
   </body>
 
</html>

Output:



Hello, World! This is PHP code

Features of PHP

Why should we 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 users’ data which makes PHP secure and reliable to be used as a server-side scripting language. So these are some of PHP’s abilities that make it suitable to be used as a server-side scripting language. You will get to know more of these abilities in further tutorials. 
Even if the above abilities do not convince you 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 a 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
Please refer to setting up the development environment to setup and run PHP programs.

What’s new in PHP 7.0?

Advantages of PHP

Disadvantages of PHP


Article Tags :