PHP Server-Side Scripting language for Website Development

By Prof. Fazal Rehman Shamil
Last modified on October 22nd, 2021

PHP (Server-Side Scripting language)

PHP language stands for “PHP: Hypertext Pre-processor” The most widely-used, open-source, and script language. All PHP scripts are executed on the server.

It can be run on different platforms like:

  • Windows
  • Linux
  • Unix
  • Mac OS X etc.

It is used for almost every server like

  • Apache
  • It also supports various types of databases.

PHP Syntax

 PHP script starts with


         Code written here…


The extension for PHP files is “.php”. Normally a PHP FILE contains HTML tags, and some PHP scripting code. Below, there is an example of a code, with a PHP script that uses a built-in PHP function “echo” for print out the text “Script Language” on a web page:



                PHP Page

           Script Language

Code  Comments
<html> Starting with HTML tags
<h2></h2> Head (heading 2)opening and closing of head
<?php Starting php
echo Built in function to print the text
 ?> Closing of php

Pre-requisites to PHP

Before you start your learning with PHP, you must have a little basic understanding of HTML, CSS, and JavaScript.

Best PHP Frameworks For Web Development

1. Laravel
2. Phalcon
3. Fat-Free Framework
4. CodeIgniter
5. Laminas Project
6. CakePHP
7. FuelPHP
8. Slim
9. PHPixie
10. Symfony
11. Yii

Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.