My Life with PHP

INTRODUCTION

Client Side :HTML,CSS
Server Side :PHP,JSP,ASP
PHP is used to develop Web Applications.
PHP (Personal Home Page) (Hypertext Preprocessor)

PHP:
PHP is a server side scripting language implemented by RASMUS LERDORF in 1995 using 'C' and 'PERL' Technologies.By using PHP we can develop Dynamic Web Application.

Static Webpage : Only information displays.
Ex : Newspaper
Dynamic Webpage: We can Login.
Ex : Gmail,Facebook

PHP stands for Personal Home Page and also it contains its alias name i.e. Hypertext Preprocessor.

RASMUS LERDORF implemented PHP to find out how many companies accessing his Resume through online. He used 'C' and 'PERL' Technologies for this implementaion.
Apache : Open source free server.
IIS : .net uses this server.

Note:
MySQL is a open source and only PHP can directly contact with MySQL, so there is a combation of MySQL and PHP.
PHP Application : Facebook
ASP Application : ORKUT

PHP Maintained by Zend Organization.

Features of PHP

  • 1.Cross Platform :
    It can run under any typers of operating systems.
  • 2.Cross Server :
    It can run under different types of web servers,
    like--IIS,Apache etc.
  • 3.Cross Database :
    It supports any type of Database server.
  • 4.PHP 5.0 MySQL :
    PHP 5.0 is providing MySQL library to interact with MySQL Database.
  • 5.PHP supports number of object oriented programming concepts
    like--Inheritance,Access Specifiers etc.
  • 6.PHP is open source.
  • 7.PHP supports different types of content management software
    like--JOOMLA,DRUPAL,WORDPRESS etc.
    All CMS (Content Management System) softwares are open source softwares.
  1. PHP providing number of security function to apply security yo function 1-way Encrypt?2-way Encrypt? Authentication etc..
  2. PHP supporting different types of editors to develop programm;we can also use lightweight Editors(Notpade,Editplus Etc.)
  3. PHP execution is very fast Bcoz of zend Engine.
  4. Zend organaization is maintaining the php script .They introduced number of tools to work with php & also they are providing comlete support to php programmers through online.

  5. PHP is very easy to understand & Develope the application.

    Versions of PHP

    1.PHP 1.0(1995)

    i) Rosmus lerdorf implemented PHP 1.0 using 'c' & 'perl' software.
    ii) It is not server side scripting language.
    iii) Implementaion from 'c'&'perl' software.

    2.PHP 2.0(1997)

    i) Rosmus lerdorf implemented PHP 2.0 as partially server side scripting language.
    ii) PHP 2.0 supports different types of database servers.
    iii) We can implemente some types of modules using 2.0 those are registration,login,etc.

    3.PHP 3.0(1998)

    i) PHP 2.0 is fully server side scripting language.
    ii) Zeey suraski & Andy gutmans rewritten the functionalities of php from scratch.on released it 3.0 as fully server side scripting language.
    iii) PHP 3.0 supports different platforms(operating system.)
    iv) personal Homepage is renamed as Hypertext preprocessor with this version.

    4.PHP 4.0(2000)

    i) PHP 4.0 is cross server ,it supports IIS,APACHE,TOMCAT etc.
    ii) Zend engine 1.0 is introduced in php 4.0,zend engine is runtime environment of php application.
    iii) smarty templating system is introduced with this version,we can simply develop the application with predefined templates

    5.PHP 5.0(2004-05)

    i) The major upgrade of PHP 5.0 is object oriented programming support
    ii) Zend Engine 2.0 is introduced with PHP 5.0

iii) XML and Webservices related classes are introduced with PHP 5.0

6) PHP 6.0:

i) The main focus ofd PHP 6.0 is Unicode support means programmers can able to name their
classes and methods with the native languages.

ii) some advanced object oriented programming concepts introduced with PHP6.0 those are
namespaces, and late static binding.

  • PHP is partially case sensitive language. In function point of view it is case in sensitive
    and variables point of view it is case sensitive.
  • Every statement in PHP, we should end with semicolon(;).
  • PHP is Loosely typed language. That's why no need to provide datatypes at the lime of
    variable declaration.
  • Variable names in PHP should starts with '$'(Dollar) symbol.
  • Every PHP file extension should be [.PHP]
  • PHP script we should include within the sript declaration style tags.
  • < ?php-----?>

WEB SERVER:

Webserver is a software used to run the application. It handles the request from client and sends
the response to the client.

Ex: IIS,Apache,Tomcat,Etc.,.

WEB BROWSER:

It is a software used to open web applications from webserver.

Ex: InternetExplorer,MozillaFirefox,Etc.,.

REQUEST:

A Request is a trip of Webpage from Browser to Server.

Ex: www.gmail.com.

RESPONSE:

Server sends the output for client request in the form of response.

CLIENT SIDE SCRIPT:

The script which executes client system with the help of Webbrowser can be called as
Client-Side-Script.

Ex: HTML,Javascript,Etc.,.

SERVER SIDE SCRIPT:

The server executes in the Webserver with the help of server engines.user can't see the original
script of Server-Side-Script languages.

Ex: PHP,ASP,JSP,Etc.,.