Presentation is loading. Please wait.

Presentation is loading. Please wait.

PHP Hypertext Pre-Processor

Similar presentations


Presentation on theme: "PHP Hypertext Pre-Processor"— Presentation transcript:

1 PHP Hypertext Pre-Processor
Currently Version 4 The Server Side Scripting Technology PHP - Presentation, ETH Zürich July 02 © Rainer Baumann, PHP - Title

2 PHP – Overview About My Person Introduction to PHP History of PHP
Dynamic Web Contents -> Server Side The PHP Engine Teamwork PHP Features & Functions Demo The PHP Language Look Out PHP - Presentation, ETH Zürich July 02 © Rainer Baumann,

3 PHP – Rainer Baumann 1995 New Company 2000 Foundation Member
T h e T e c h n o l o g y N e t w o r k Master Studies in Computer Science KryptKp II/41 PHP - Presentation, ETH Zürich July 02 © Rainer Baumann,

4 PHP – The PHP PHP file extensions in the web:
.php / .php4 / .php3 / .phtml PHP is often used for midsize search engines PHP - Presentation, ETH Zürich July 02 © Rainer Baumann,

5 PHP – History 1994 – 1997 – 1998 – 1999 – 2000 – PHP/FI, Personal Home Page / Forms Interpreter Macro Interpreter for visitors on-line resume, C Like Set of Perl Scripts (Rasmus Lerdorf) PHP/FI 2, Fully C implemented PHP 3 (Andi Gutmans und Zeev Suraski) Extendable, Object Oriented Approach Zend Engine, totally new to handle complexity of applications and improve efficiency PHP 4, Hypertext Pre-Processor, a lot of new things PHP - Presentation, ETH Zürich July 02 © Rainer Baumann,

6 PHP – The Success PHP availability today Open Source
-> Implementation for most systems available Standard Apache Module Linux distributions (RedHat, SUSE, …) Unix (Sun) Supported by Microsoft IIS PHP - Presentation, ETH Zürich July 02 © Rainer Baumann,

7 PHP – Dynamic Web Content
Client Server Internet Client Side Scripting Java Script VB Script CSS Plug Ins Flash Applet Java Hilfsprogramme CGI Perl Server-APIs Java Servlets SSI Server Side Scripting PHP ASP (VB) JSP API More Techniques: XML, SOAP, RMI, CORBA ... PHP - Presentation, ETH Zürich July 02 © Rainer Baumann,

8 Operating System Calls
PHP – Server Side Server Libraries Dynamic Loadable Java Servlet Static Process NS - API PHP Engine Static Process HTML Passable Java Servlet – Module PHP - Module Operating System Calls Includable in HTML SSI – Module CGI – Module CGI - New Process Stdout send to Client PHP - Presentation, ETH Zürich July 02 © Rainer Baumann,

9 PHP – The Engine (Zend) PHP - Presentation, ETH Zürich July 02
© Rainer Baumann,

10 PHP – Teamwork Comparison of different server side
web application technologies -> Teams of 2 -> Read Instructions PHP - Presentation, ETH Zürich July 02 © Rainer Baumann,

11 PHP – Teamwork Questions
Which Technology would you why use for: A rarely used huge online compiler A often accessed online shop A often used dynamic web content builder A sometimes used person database PHP - Presentation, ETH Zürich July 02 © Rainer Baumann,

12 PHP – Teamwork Comparison
Comparison > Difficult > Application Dependant > Large Differences Performance Comparison of Alternative Solutions For Web-To-Database Applications (CGI, Java Servlets and PHP) SCC_Amanda/SCC_Amanda.pdf Web Application Benchmarks PHP - Presentation, ETH Zürich July 02 © Rainer Baumann,

13 PHP – Main Features Easy database access
(SyBase, MySQL, mSQL, Oracle, DB2, Informix, …) Supports all major internet standards (SNMP, POP, IMAP, NNTP, LDAP, …) Hundreds of functions as dynamic generation of PDF, JPEG, .. XML processing Open source and extendable -> Function List PHP - Presentation, ETH Zürich July 02 © Rainer Baumann,

14 PHP – Function List PHP - Presentation, ETH Zürich July 02
© Rainer Baumann,

15 PHP – Example http://jfzh.ch JFZH Intern JFZH DB PHP Use JFZH DB
Public Area Agenda News und Berichte Ortsgruppen Vorstand Formulare Closed Area Self Authentifcating JFZH DB Personen (Adresse / Bild / Status) Ortsgruppen (Funktionen / Web) OG-Services ( / Export) Services (Backup / Beiträge / Hierarchie) JFZH Intern Agenda Mutation News und berichte Mutation File Austausch PHP - Presentation, ETH Zürich July 02 © Rainer Baumann,

16 PHP – Language Fragments
// Number $a = 5; $b = $a + 8; // Array $m[1] = “xyz“; // String $h = “hallo“; if ($a < 5) { $b = $a + 10; } else {    $b = $a * 2; } for ($i = 0; $i < 10; $i++) {   echo $i; } PHP - Presentation, ETH Zürich July 02 © Rainer Baumann,

17 PHP – More Language Fragments
function foo($arg) { return $arg x 5; } class Lab { var $ident; function get_Ident() { retrurn $ident; } $l = new Lab; $l->get_Ident(); PHP - Presentation, ETH Zürich July 02 © Rainer Baumann,

18 PHP – End PHP - Presentation, ETH Zürich July 02
© Rainer Baumann, PHP – End

19 PHP – Template PHP - Presentation, ETH Zürich July 02
© Rainer Baumann,


Download ppt "PHP Hypertext Pre-Processor"

Similar presentations


Ads by Google