Topic outline

    • We can create two type of website one is static website and other one is dynamic website. PHP is mainly used to create dynamic website

      THE Request/Response Procedure:

      At the foremost basic level, the request/response process consists of applications program asking the net server to send it a web page and also the server sending  back the page. The browser then make sure of displaying a page

      Each step in the request and response sequence is as follows :

      1) Suppose if enter the url:

      2) Our browser looks up the IP address for

      3) Our browser issues a request for the home page at

      4) The request crosses the Internet and arrives at the web server

      5) The web server, having received the request, looks for the web page on its disk

      6) The web page is retrieved by the server and returned to the browser

      7) The browser displays a web page.

      For Dynamic web Content

      1) Suppose if we enter url:

      2) Our browser looks up the IP address for

      3) our browser issues missive of invitation for the house page at

      4) The request crosses the net and arrives at the web server

      5) The net server, having received the request, looks for the online page on its disk

      6) With the house page now in memory, the online server notices that it's a file incorporating PHP scripting and passes the page to the PHP interpreter.

      7) The PHP interpreter executes the PHP code. 

      8) Some of the PHP contains MySQL statements, which the PHP interpreter now passes to the MySQL database engine. 

      9) The MySQL database returns the results of the statements to the PHP interpreter.

      10) The PHP interpreter returns the results of the executed PHP code, together with the results from the MySQL database, to the net server. 

      11) The web server returns the page to the requesting client, which displays it.

      PHP could be a mature, powerful language that’s become the foremost widely used technology for creating dynamic websites. It brings websites to life within the following ways:

      • Uploads files through a web page

      • Generates thumbnails from larger images

      • Reads and writes to files

      • Displays and updates information dynamically

      • Uses a database to display and store information

      • Makes web sites searchable

      • Sends feedback from your web site directly to your mailbox


      PHP was originally called as Personal Home Page Tools(PHP Tools).Its main goal is to collect the information online form to create guest book and displaying it on the web page. Then so many features were added to the language, Later the name of PHP Tools was changed as PHP Hypertext Preprocessor. One of the most popular Framework of PHP is Laravel which was widely used to create website.

      Rasmus Lerdorf –Creator of PHP page

      PHP-1995 Colleciton of PERL/CGI Scripts

      Created by Rasmus Lerdorf in 1995,initially as a simple set of perl scripts for tracking accesses to his online resume.

      PHP/FI-1997 Form Interpreter

      Rasmus wrote a much larger C implementation which was able to communicate with databases, and enabled users to develop simple dynamic web applications.

      PHP 3.0 - June 1998

      Lots of different databases,protocols and APIs

      Developers joined in and submit new extension module

      PHP: Hypertext Preprocesor

      PHP 4

      Zend engine introduced 1999

      Support for webserver

      Object oriented Programmming

      PHP 5

      Zend engine 2.0

      XML and web services

      Objectoriented support

      Exception Handling

      PHP 7

      Latest version php with lot of improvement. speed increased, type declaration, return type declarations, error handling, generator delegation, Unicode support for emoji and international character, constant array using define are some of the new features are added into this new version of PHP.


      1) We can put our website navigation menu in an include file and use PHP to include it in each page. Whenever we need a change the menu we edit only the include file ,the changes are automatically reflected in every page that includes the menu. It saves a lot of time of editing dozen of pages.

      2) Anyone accessing our site after the stroke of midnight on New Year’s Day sees the correct year.

      3) The date is calculated by the web server, so it’s not affected if the clock in the user’s computer is set incorrectly.

      PHP :

      1) PHP is widely used ,open source scripting language

      2) PHP scripts are executed on the server

      3) PHP is free to download and use

      4) PHP file contain text, HTML, JavaScript code and PHP code.

      5) PHP code are executed on the server, and the result is returned to the browser 

      6) PHP file have a default extension of .php

      7) PHP can generate dynamic web page content

      8) PHP can collect form data

      9) PHP can send and receive cookies.

      10) PHP can create, open, read, write and close file on the server

      11) PHP can add, delete, modify data in database

      12) PHP can encrypt data.

      13) PHP runs on different platform

      14) PHP is compatible with all servers.

      15) PHP has support for wide range of databases.

      16) PHP is easy to learn and runs efficiently on the server side.