What is PHP?
  • PHP is the acronym of Hypertext Preprocessor.
  • PHP is an open-source scripting language.
  • PHP is a Back-end scripting language and It executes on the server.
  • PHP is free and easy to learn.
  • PHP runs on different platforms like Windows, Linux, UNIX, etc.
  • It is compatible with various servers.
  • PHP file can include Text, HTML, CSS, JAVASCRIPT and PHP codes together.
  • PHP files has file extension of .php.
Use of PHP
  • On a server it can Create, Open, Read, Write and Close files.
  • PHP can handle forms.
  • You can Add, Delete, Modify files on your dataBase by using PHP.
  • You can manage user Access control of pages of a website through PHP.
  • PHP can encrypt data.
Characteristics of PHP
  1. Open-source
  2. Flexibility
  3. Simplicity
  4. Familiarity
  5. Object-Oriented
  6. Efficiency
  7. Security
My First PHP Script
We can embed PHP code into HTML as follows.
<html>
   
   <head>
     
   </head>
   
   <body>
      <?php echo "Hello World!";?>
   </body>

</html>