PHP - PowerPoint PPT Presentation

1 / 17
About This Presentation
Title:

PHP

Description:

... type='button' onClick = 'javascript:AddNewPerson();' button onclick='javascript:reset1()' New ... button onclick='javascript:reset1()' New Search /button ... – PowerPoint PPT presentation

Number of Views:52
Avg rating:3.0/5.0
Slides: 18
Provided by: sw492
Category:
Tags: php | onclick

less

Transcript and Presenter's Notes

Title: PHP


1
PHP JavascriptA marriage of two languages
  • Seth Wing

2
Overview
  • Motivation for presentation
  • Overview of PHP
  • History of PHP
  • Overview of Javascript
  • History of Javascript
  • How they work together
  • Conclusion
  • Questions

3
Motivation
PHP Javascript a marriage of two languages
  • if( (num_results 0))
  • displayForm FALSE
  • ?gt
  • lth2gtNo matches were foundlt/h2gt
  • ltbr /gt
  • Do you wish to add a new person?
  • ltinput type"button" onClick
    "javascriptAddNewPerson()"gt
  • ltbutton onclick"javascriptreset1()"gtNew
    Searchlt/buttongt
  • lt?php
  • else
  • //display the data in HTML format

4
Overview
PHP generates web pages Most common use is
database queries
Valuable bandwidth
  • Javascript performs client-side operations
  • Examples
  • Form verification
  • Popupwindows
  • Dynamic displays

Client
Server
5
Server side scripting languages
  • ASP Microsoft
  • ColdFusion
  • JSP (JavaServer Pages)
  • PHP
  • Server-side javascript

6
What is PHP?
  • Server side scripting language
  • Can be embedded in HTML document to generate
    dynamic web pages
  • Generally used to query and display database
    information
  • Open source

7
History of PHP
  • Started as a simple perl script
  • Rewritten using C and released to public as open
    source
  • PHP/FI personal home page/Forms Interpreter
  • PHP/FI 2.0 released in 1997
  • 1 of domains used PHP/FI 2.0

8
History of PHP
  • 1998 - PHP 3 released
  • complete new write-up
  • Renamed PHP hypertext preproccesor
  • 10 of all web domains
  • PHP 5 released in 2005
  • 20 of all web domains
  • www.php.net

9
Uses of PHP today
  • Used on many different systems
  • Query database on the server
  • Extensive support for database utilization
  • Process forms from HTML pages
  • Displaying dynamic information

10
What is javascript?
  • Client side scripting language
  • Perl / C like language
  • Loosely type variables
  • Block structure
  • Easily ported to other web pages
  • Javascript completely dependent on web browser

11
History of javascript
  • Started in 1995 by Netscape
  • Developed as a compliment to both Java and HTML
  • Plagued by security flaws and inconsistencies
    between browsers
  • Now remains a powerful compliment to PHP to
    perform functions at the clients computer

12
(No Transcript)
13
Review
PHP Javascript a marriage of two languages
  • if( ! (num_results 0))
  • displayForm FALSE
  • ?gt
  • lth2gtNo matches were foundlt/h2gt
  • ltbr /gt
  • Do you wish to add a new person?
  • ltinput type"button" onClick
    "javascriptAddNewPerson()"gt
  • ltbutton onclick"javascriptreset1()"gtNew
    Searchlt/buttongt
  • lt?php
  • else
  • //display the data in HTML format

14
Review
PHP Javascript a marriage of two languages
  • If the query did not find anything then this is
    what will be sent
  • lth2gtNo matches were foundlt/h2gt
  • ltbr /gt
  • Do you wish to add a new person?
  • ltinput type"button" onClick
    "javascriptAddNewPerson()"gt
  • ltbutton onclick"javascriptreset1()"gtNew
    Searchlt/buttongt

15
(No Transcript)
16
Conclusion
  • Motivation for presentation
  • Overview of PHP
  • History of PHP
  • Overview of Javascript
  • History of Javascript
  • How they work together
  • Conclusion
  • Questions

17
  • Questions?
Write a Comment
User Comments (0)
About PowerShow.com