Introduction to PHP 'Preprocessor Hypertext'


What is PHP?
-PHP is Hypertext Preprocessor scripting language old name is Personal Home Page
-PHP is open-source, server-side scripting language to generate the dynamic web-pages
-PHP script executes on server and result send in the client browser
-PHP was written in C and designed by Rasmus Lerdorf in 1994
-PHP file have an extension of .php,.php3,.phtml
-System function perform i.e file on System it can create, open, read, write and close
-PHP can encrypt data


Advantages of PHP:


  • Open-source
  • Platform independence 
  • Simple and Easy
  • Database
  • Fast
  • Support
  • Maintenance
  • Scripting language
Open-Source: PHP is an open-source language and free of cost which helps the developer to install easily quicky and readily available for use.

Platform Independence: It is supported by all Operating System like Windows, Linux,macOS, etc 

Simple: In PHP command function can be easily learned and understood.

Database: It is easily connected to the database and makes connections securely with the database.

Fast: PHP is fasted programming language compared to other languages like c,c++, Java and HTML.

Support: New developer to help writing the code and developing web-application.

Maintenance: Web-application development easier and maintain code automatically.

Scripting Language: Scripting language is a programming language that supports scripts.


Syntax

  1. <?php
  2.  
  3.            //code
  4.  
  5. ?>
Example:

  1. <html>
  2. <head>
  3. <title>cwipedia.in</title>
  4. </head>
  5. <body>
  6. <?php
  7. echo "Hello world"
  8. ?>
  9. </body>
  10. <html>



Solved Queries:


  1. What is PHP
  2. What is Full form of PHP
  3. State PHP
  4. Explain PHP with Example
  5. What is syntax of PHP




Comments