Presentation is loading. Please wait.

Presentation is loading. Please wait.

PHP - Title PHP Hypertext Pre-Processor Currently Version 4 The Server Side Scripting Technology PHP - Presentation, ETH Zürich July.

Similar presentations


Presentation on theme: "PHP - Title PHP Hypertext Pre-Processor Currently Version 4 The Server Side Scripting Technology PHP - Presentation, ETH Zürich July."— Presentation transcript:

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

2 PHP – Overview PHP - Presentation, ETH Zürich July 02 © Rainer Baumann, 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

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

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

5 PHP – History PHP - Presentation, ETH Zürich July 02 © Rainer Baumann, 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

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

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

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

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

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

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

12 PHP – Teamwork Comparison PHP - Presentation, ETH Zürich July 02 © Rainer Baumann, 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

13 PHP – Main Features PHP - Presentation, ETH Zürich July 02 © Rainer Baumann, 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

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

15 PHP – Example PHP - Presentation, ETH Zürich July 02 © Rainer Baumann, JFZH Intern JFZH Intern JFZH DB JFZH DB PHP Use 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

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

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

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

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


Download ppt "PHP - Title PHP Hypertext Pre-Processor Currently Version 4 The Server Side Scripting Technology PHP - Presentation, ETH Zürich July."

Similar presentations


Ads by Google