SlideShare a Scribd company logo
.
•   Server Based scripting language
•   Embedded into HTML
•   Manages Forms
•   Interfaces with databases (MySQL, etc)
•   Creating dynamic pages on the fly
1994 - Personal Home Page Tools

                 1995 - PHP-FI (Form Interpreter)
                         Forms and databases

                 1997 - PHP 3 (50,000 users)
                        (Hypertext Preprocessor)

                 1999 – 1,000,000 users

                 2000 – PHP 4 (OOP & scalable)
                        3.6 million users

                 Today – PHP5 - Over 20 million
Rasmus Lerdorf
•   It’s Free - no licensing restrictions

•    Crowd sourced – constantly improving
    (Given enough eyeballs, all bugs are shallow)

•   Minimalist language – simpler

•   Easy to learn (especially if know C/C+)

•   Over 120 libraries and 1,000 functions

•   Powerful string-parsing capabilities

•   Embraces object oriented programming

•   Integrates with over 25 types of databases
1) Server receives request via HTTP & retrieves file
2) If .php file, then processed by the PHP engine
3) Script’s application executes, performs database
   queries
4) PHP engine constructs HTML page with results–
   sends to browser
   <html>
   <head>
   <title>My first PHP Page</title>
   </head>
   <body>
   This is normal HTML code
   <?php
            //php code goes here
   ?>
   Back into normal HTML
   </body>
   </html>
Establish a connection with the database
         mysql_connect ( [$server [,$username [, $password]]])

Validate user input as needed (verify user ID, etc.)

Select the database on the server to use
          mysql_select_db ($database [, $link]);

Execute the desired query against the database
         mysql_query($query [, $link]);

Retrieve and process the results
         mysql_fetch_row ($result);
         (this function would return a single row from the result set)

Create HTML or perform actions based upon the results

Close the database connection (optional)
Scripts are a series of PHP Statements, each of which performs an action
              Save your PHP script with the .php extension
   .

More Related Content

PPTX
PHP in one presentation
Milad Rahimi
 
PPTX
Php presentation
Helen Pitlick
 
PDF
Lean Php Presentation
Alan Pinstein
 
PPTX
Presentation php
Muhammad Saqib Malik
 
PDF
Php tutorial from_beginner_to_master
PrinceGuru MS
 
PPTX
PHP Presentation
JIGAR MAKHIJA
 
PPS
PHP - History, Introduction, Summary, Extensions and Frameworks
Royston Olivera
 
PHP in one presentation
Milad Rahimi
 
Php presentation
Helen Pitlick
 
Lean Php Presentation
Alan Pinstein
 
Presentation php
Muhammad Saqib Malik
 
Php tutorial from_beginner_to_master
PrinceGuru MS
 
PHP Presentation
JIGAR MAKHIJA
 
PHP - History, Introduction, Summary, Extensions and Frameworks
Royston Olivera
 

What's hot (19)

PDF
A History of PHP
Xinchen Hui
 
PPTX
Php intro
sana mateen
 
PPT
Php hypertext pre-processor
Siddique Ibrahim
 
PPTX
Introduction to php
Taha Malampatti
 
ODP
PHP BASIC PRESENTATION
krutitrivedi
 
PPTX
Php technical presentation
dharmendra kumar dhakar
 
PPTX
PHP-MySQL Database Connectivity Using XAMPP Server
Rajiv Bhatia
 
PPTX
PHP Function
Reber Novanta
 
PPT
Php Presentation
Manish Bothra
 
PPT
Php ppt
Sanmuga Nathan
 
PPT
MySQL Presentation
Manish Bothra
 
PPTX
Introduction to php
shanmukhareddy dasi
 
PPT
01 Php Introduction
Geshan Manandhar
 
PPT
Php intro
Jennie Gajjar
 
PDF
Php introduction
krishnapriya Tadepalli
 
PPSX
Advanced PHP Web Development Tools in 2015
iScripts
 
PPT
Installation of wordpress
HAINIRMALRAJ
 
A History of PHP
Xinchen Hui
 
Php intro
sana mateen
 
Php hypertext pre-processor
Siddique Ibrahim
 
Introduction to php
Taha Malampatti
 
PHP BASIC PRESENTATION
krutitrivedi
 
Php technical presentation
dharmendra kumar dhakar
 
PHP-MySQL Database Connectivity Using XAMPP Server
Rajiv Bhatia
 
PHP Function
Reber Novanta
 
Php Presentation
Manish Bothra
 
MySQL Presentation
Manish Bothra
 
Introduction to php
shanmukhareddy dasi
 
01 Php Introduction
Geshan Manandhar
 
Php intro
Jennie Gajjar
 
Php introduction
krishnapriya Tadepalli
 
Advanced PHP Web Development Tools in 2015
iScripts
 
Installation of wordpress
HAINIRMALRAJ
 
Ad

Viewers also liked (20)

PDF
Beginning web programming with PHP [PHP 101-02]
Mozammel Haque
 
PDF
Phing: Building with PHP
hozn
 
PPTX
PHP
Jawhar Ali
 
PDF
Threads in PHP - Presentation
appserver.io
 
PPT
Core Php Component Presentation
John Coonen
 
PPTX
Php oop presentation
Mutinda Boniface
 
PDF
Devise | Presentation for Alpharetta PHP / Laravel Group
Gary Williams
 
PPTX
PHP presentation
Helen Pitlick
 
ODP
Internationalisation with PHP and Intl
Daniel_Rhodes
 
ODP
Introduction of Html/css/js
Knoldus Inc.
 
PPTX
Php string function
Ravi Bhadauria
 
PDF
PHP Tour 2016 Phinx Presentation
Rob Morgan
 
PPSX
Php string
argusacademy
 
KEY
HTML CSS & Javascript
David Lindkvist
 
PPT
Php Ppt
vsnmurthy
 
PPTX
Technical Seminar PPT
Kshitiz_Vj
 
PPT
Html JavaScript and CSS
Radhe Krishna Rajan
 
PPT
Shift Happens
Jeff Brenman
 
PPT
THIRST
Jeff Brenman
 
PDF
Foot Notes
Melanie Kahl
 
Beginning web programming with PHP [PHP 101-02]
Mozammel Haque
 
Phing: Building with PHP
hozn
 
Threads in PHP - Presentation
appserver.io
 
Core Php Component Presentation
John Coonen
 
Php oop presentation
Mutinda Boniface
 
Devise | Presentation for Alpharetta PHP / Laravel Group
Gary Williams
 
PHP presentation
Helen Pitlick
 
Internationalisation with PHP and Intl
Daniel_Rhodes
 
Introduction of Html/css/js
Knoldus Inc.
 
Php string function
Ravi Bhadauria
 
PHP Tour 2016 Phinx Presentation
Rob Morgan
 
Php string
argusacademy
 
HTML CSS & Javascript
David Lindkvist
 
Php Ppt
vsnmurthy
 
Technical Seminar PPT
Kshitiz_Vj
 
Html JavaScript and CSS
Radhe Krishna Rajan
 
Shift Happens
Jeff Brenman
 
THIRST
Jeff Brenman
 
Foot Notes
Melanie Kahl
 
Ad

Similar to PHP presentation - Com 585 (20)

PPTX
Training ppt
nikita vijay
 
PPTX
PHP ITCS 323
Sleepy Head
 
PPTX
PHP language presentation
Annujj Agrawaal
 
PPTX
PHP Hypertext Preprocessor
adeel990
 
PPTX
Chapter onehsfhjfgjhdjhdhfsGfhghsgasg (2).pptx
berihun18
 
PPTX
Server – side Technologies PHP for web dev.pptx
MarioCaday2
 
PPTX
HackU PHP and Node.js
souridatta
 
PPT
Intro to PHP for Students and professionals
cuyak
 
PPTX
introduction to backend with php 8.X - slide.pptx
geremilibrary
 
PPTX
Php reports sumit
Sumit Biswas
 
PDF
Summer training report priyanka
priyanka kumari
 
PPT
PHP LICTURES ..........
Rashid Ahmad
 
PPT
Php unit i
prakashvs7
 
PPT
Synapseindia reviews on array php
saritasingh19866
 
PPT
PHP and MySQL
bmani
 
PDF
Unit 1 php_basics
Kumar
 
PPTX
Introduction to PHP.pptx
SherinRappai
 
PPTX
Php introduction and configuration
Vijay Kumar Verma
 
Training ppt
nikita vijay
 
PHP ITCS 323
Sleepy Head
 
PHP language presentation
Annujj Agrawaal
 
PHP Hypertext Preprocessor
adeel990
 
Chapter onehsfhjfgjhdjhdhfsGfhghsgasg (2).pptx
berihun18
 
Server – side Technologies PHP for web dev.pptx
MarioCaday2
 
HackU PHP and Node.js
souridatta
 
Intro to PHP for Students and professionals
cuyak
 
introduction to backend with php 8.X - slide.pptx
geremilibrary
 
Php reports sumit
Sumit Biswas
 
Summer training report priyanka
priyanka kumari
 
PHP LICTURES ..........
Rashid Ahmad
 
Php unit i
prakashvs7
 
Synapseindia reviews on array php
saritasingh19866
 
PHP and MySQL
bmani
 
Unit 1 php_basics
Kumar
 
Introduction to PHP.pptx
SherinRappai
 
Php introduction and configuration
Vijay Kumar Verma
 

PHP presentation - Com 585

  • 1. .
  • 2. Server Based scripting language • Embedded into HTML • Manages Forms • Interfaces with databases (MySQL, etc) • Creating dynamic pages on the fly
  • 3. 1994 - Personal Home Page Tools 1995 - PHP-FI (Form Interpreter) Forms and databases 1997 - PHP 3 (50,000 users) (Hypertext Preprocessor) 1999 – 1,000,000 users 2000 – PHP 4 (OOP & scalable) 3.6 million users Today – PHP5 - Over 20 million Rasmus Lerdorf
  • 4. It’s Free - no licensing restrictions • Crowd sourced – constantly improving (Given enough eyeballs, all bugs are shallow) • Minimalist language – simpler • Easy to learn (especially if know C/C+) • Over 120 libraries and 1,000 functions • Powerful string-parsing capabilities • Embraces object oriented programming • Integrates with over 25 types of databases
  • 5. 1) Server receives request via HTTP & retrieves file 2) If .php file, then processed by the PHP engine 3) Script’s application executes, performs database queries 4) PHP engine constructs HTML page with results– sends to browser
  • 6. <html>  <head>  <title>My first PHP Page</title>  </head>  <body>  This is normal HTML code  <?php  //php code goes here  ?>  Back into normal HTML  </body>  </html>
  • 7. Establish a connection with the database mysql_connect ( [$server [,$username [, $password]]]) Validate user input as needed (verify user ID, etc.) Select the database on the server to use mysql_select_db ($database [, $link]); Execute the desired query against the database mysql_query($query [, $link]); Retrieve and process the results mysql_fetch_row ($result); (this function would return a single row from the result set) Create HTML or perform actions based upon the results Close the database connection (optional)
  • 8. Scripts are a series of PHP Statements, each of which performs an action Save your PHP script with the .php extension
  • 9. .

Editor's Notes

  • #4: PHP-FI included ability to integrate forms with databases. PHP 4 included better resource-handling which made it scalable for large scale applications. Also included support for object-oriented programming. PHP 5 improved on support for OOP and added many more features.