SlideShare ist ein Scribd-Unternehmen logo
1 von 9
.
•   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
   .

Weitere ähnliche Inhalte

Was ist angesagt? (19)

A History of PHP
A History of PHPA History of PHP
A History of PHP
 
Php intro
Php introPhp intro
Php intro
 
Php hypertext pre-processor
Php   hypertext pre-processorPhp   hypertext pre-processor
Php hypertext pre-processor
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 
PHP
PHPPHP
PHP
 
php
phpphp
php
 
PHP BASIC PRESENTATION
PHP BASIC PRESENTATIONPHP BASIC PRESENTATION
PHP BASIC PRESENTATION
 
Php technical presentation
Php technical presentationPhp technical presentation
Php technical presentation
 
PHP-MySQL Database Connectivity Using XAMPP Server
PHP-MySQL Database Connectivity Using XAMPP ServerPHP-MySQL Database Connectivity Using XAMPP Server
PHP-MySQL Database Connectivity Using XAMPP Server
 
PHP Function
PHP Function PHP Function
PHP Function
 
Php Presentation
Php PresentationPhp Presentation
Php Presentation
 
Php ppt
Php pptPhp ppt
Php ppt
 
MySQL Presentation
MySQL PresentationMySQL Presentation
MySQL Presentation
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 
01 Php Introduction
01 Php Introduction01 Php Introduction
01 Php Introduction
 
Php intro
Php introPhp intro
Php intro
 
Php introduction
Php introductionPhp introduction
Php introduction
 
Advanced PHP Web Development Tools in 2015
Advanced PHP Web Development Tools in 2015Advanced PHP Web Development Tools in 2015
Advanced PHP Web Development Tools in 2015
 
Installation of wordpress
Installation of wordpressInstallation of wordpress
Installation of wordpress
 

Andere mochten auch

Beginning web programming with PHP [PHP 101-02]
Beginning web programming with PHP [PHP 101-02]Beginning web programming with PHP [PHP 101-02]
Beginning web programming with PHP [PHP 101-02]Mozammel Haque
 
Phing: Building with PHP
Phing: Building with PHPPhing: Building with PHP
Phing: Building with PHPhozn
 
Threads in PHP - Presentation
Threads in PHP - Presentation Threads in PHP - Presentation
Threads in PHP - Presentation appserver.io
 
Core Php Component Presentation
Core Php Component PresentationCore Php Component Presentation
Core Php Component PresentationJohn Coonen
 
Devise | Presentation for Alpharetta PHP / Laravel Group
Devise | Presentation for Alpharetta PHP / Laravel GroupDevise | Presentation for Alpharetta PHP / Laravel Group
Devise | Presentation for Alpharetta PHP / Laravel GroupGary Williams
 
Internationalisation with PHP and Intl
Internationalisation with PHP and IntlInternationalisation with PHP and Intl
Internationalisation with PHP and IntlDaniel_Rhodes
 
Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/jsKnoldus Inc.
 
PHP Tour 2016 Phinx Presentation
PHP Tour 2016 Phinx PresentationPHP Tour 2016 Phinx Presentation
PHP Tour 2016 Phinx PresentationRob Morgan
 
Technical Seminar PPT
Technical Seminar PPTTechnical Seminar PPT
Technical Seminar PPTKshitiz_Vj
 

Andere mochten auch (20)

Beginning web programming with PHP [PHP 101-02]
Beginning web programming with PHP [PHP 101-02]Beginning web programming with PHP [PHP 101-02]
Beginning web programming with PHP [PHP 101-02]
 
Phing: Building with PHP
Phing: Building with PHPPhing: Building with PHP
Phing: Building with PHP
 
PHP
PHPPHP
PHP
 
Threads in PHP - Presentation
Threads in PHP - Presentation Threads in PHP - Presentation
Threads in PHP - Presentation
 
Core Php Component Presentation
Core Php Component PresentationCore Php Component Presentation
Core Php Component Presentation
 
Php oop presentation
Php   oop presentationPhp   oop presentation
Php oop presentation
 
Devise | Presentation for Alpharetta PHP / Laravel Group
Devise | Presentation for Alpharetta PHP / Laravel GroupDevise | Presentation for Alpharetta PHP / Laravel Group
Devise | Presentation for Alpharetta PHP / Laravel Group
 
PHP presentation
PHP presentationPHP presentation
PHP presentation
 
Internationalisation with PHP and Intl
Internationalisation with PHP and IntlInternationalisation with PHP and Intl
Internationalisation with PHP and Intl
 
Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/js
 
Php string function
Php string function Php string function
Php string function
 
PHP Tour 2016 Phinx Presentation
PHP Tour 2016 Phinx PresentationPHP Tour 2016 Phinx Presentation
PHP Tour 2016 Phinx Presentation
 
Php string
Php stringPhp string
Php string
 
HTML CSS & Javascript
HTML CSS & JavascriptHTML CSS & Javascript
HTML CSS & Javascript
 
Php Ppt
Php PptPhp Ppt
Php Ppt
 
Technical Seminar PPT
Technical Seminar PPTTechnical Seminar PPT
Technical Seminar PPT
 
Html JavaScript and CSS
Html JavaScript and CSSHtml JavaScript and CSS
Html JavaScript and CSS
 
Shift Happens
Shift HappensShift Happens
Shift Happens
 
THIRST
THIRSTTHIRST
THIRST
 
Foot Notes
Foot NotesFoot Notes
Foot Notes
 

Ähnlich wie PHP presentation - Com 585

6 3 tier architecture php
6 3 tier architecture php6 3 tier architecture php
6 3 tier architecture phpcefour
 
IntroductiontoPHP.ppt
IntroductiontoPHP.pptIntroductiontoPHP.ppt
IntroductiontoPHP.ppttruptitasol
 
IntroductiontoPHP.ppt
IntroductiontoPHP.pptIntroductiontoPHP.ppt
IntroductiontoPHP.ppttruptitasol
 
IntroductiontoPHP.ppt
IntroductiontoPHP.pptIntroductiontoPHP.ppt
IntroductiontoPHP.ppttruptitasol
 
IntroductiontoPHP.ppt
IntroductiontoPHP.pptIntroductiontoPHP.ppt
IntroductiontoPHP.ppttruptitasol
 
IntroductiontoPHP.ppt
IntroductiontoPHP.pptIntroductiontoPHP.ppt
IntroductiontoPHP.ppttruptitasol
 
IntroductiontoPHP.ppt
IntroductiontoPHP.pptIntroductiontoPHP.ppt
IntroductiontoPHP.ppttruptitasol
 
IntroductiontoPHP.ppt
IntroductiontoPHP.pptIntroductiontoPHP.ppt
IntroductiontoPHP.ppttruptitasol
 
IntroductiontoPHP.ppt
IntroductiontoPHP.pptIntroductiontoPHP.ppt
IntroductiontoPHP.ppttruptitasol
 
IntroductiontoPHP.ppt
IntroductiontoPHP.pptIntroductiontoPHP.ppt
IntroductiontoPHP.ppttruptitasol
 

Ähnlich wie PHP presentation - Com 585 (20)

6 3 tier architecture php
6 3 tier architecture php6 3 tier architecture php
6 3 tier architecture php
 
Php intro
Php introPhp intro
Php intro
 
Php intro
Php introPhp intro
Php intro
 
PHP and MySQL
PHP and MySQLPHP and MySQL
PHP and MySQL
 
test
testtest
test
 
IntroductiontoPHP.ppt
IntroductiontoPHP.pptIntroductiontoPHP.ppt
IntroductiontoPHP.ppt
 
ssfsd fsdf ds f
ssfsd fsdf ds fssfsd fsdf ds f
ssfsd fsdf ds f
 
IntroductiontoPHP.ppt
IntroductiontoPHP.pptIntroductiontoPHP.ppt
IntroductiontoPHP.ppt
 
IntroductiontoPHP.ppt
IntroductiontoPHP.pptIntroductiontoPHP.ppt
IntroductiontoPHP.ppt
 
IntroductiontoPHP.ppt
IntroductiontoPHP.pptIntroductiontoPHP.ppt
IntroductiontoPHP.ppt
 
IntroductiontoPHP.ppt
IntroductiontoPHP.pptIntroductiontoPHP.ppt
IntroductiontoPHP.ppt
 
IntroductiontoPHP.ppt
IntroductiontoPHP.pptIntroductiontoPHP.ppt
IntroductiontoPHP.ppt
 
ssfsd fsdf ds f
ssfsd fsdf ds fssfsd fsdf ds f
ssfsd fsdf ds f
 
ssfsd fsdf ds f
ssfsd fsdf ds fssfsd fsdf ds f
ssfsd fsdf ds f
 
IntroductiontoPHP.ppt
IntroductiontoPHP.pptIntroductiontoPHP.ppt
IntroductiontoPHP.ppt
 
ssfsd fsdf ds f
ssfsd fsdf ds fssfsd fsdf ds f
ssfsd fsdf ds f
 
ssfsd fsdf ds f
ssfsd fsdf ds fssfsd fsdf ds f
ssfsd fsdf ds f
 
IntroductiontoPHP.ppt
IntroductiontoPHP.pptIntroductiontoPHP.ppt
IntroductiontoPHP.ppt
 
hgfgf
hgfgfhgfgf
hgfgf
 
IntroductiontoPHP.ppt
IntroductiontoPHP.pptIntroductiontoPHP.ppt
IntroductiontoPHP.ppt
 

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. .

Hinweis der Redaktion

  1. 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.