<?php.... PHP 4 Internals Andi Gutmans PHP Group Member & Co-founder of Zend Technologies O’Reilly OSCON Monterey - July 2000.

Slides:



Advertisements
Similar presentations
PHP Hypertext Pre-Processor
Advertisements

EIONET Training Beginners Zope Course Miruna Bădescu Finsiel Romania Copenhagen, 27 October 2003.
Other Web Application Development Technologies. PHP.
CMS (Content Management System And Wordpress) Presented By: Syed Arshad Sultan UI Developer – w3maestro.co.uk PHP & MySQL.
1 Database Driven Web Application Clients Application Servers including web servers Database Server Traditional client-server (2-tier architecture): client:
INTRODUCTION GROUP MEMBERS Abubakr Saeed : Khurram Ali Khan :
Software Freedom Day th September 2007 Asia Pacific Institute of Information Technology Colombo, Sri Lanka. Nazly Ahmed Scripting The Web.
PHP: Hypertext Preprocessor Greg Lowe Rob White Brian Wright Mike Zywiec.
BY: ALBERTO CABEZAS 4/19/2010. INTRODUCTION: PHP is considered today as one of the most famous scripting languages. PHP is widely used as a general purpose.
PHP/ASP Robert Nelson & Will Vanlue BA370 November 4 th, 2005.
PHP CSCE 330 February 6, 2003 Group Members: Antwan B. Phan George Hwang Luat Vu Programming Language Presentation.
Learning Web development. 3(+1) Tier architecture PHP script Remote services Web Server (Apache, IIS) Browser (IE, FireFox, Opera) Desktop (PC or MAC)
Fast Track to ColdFusion 9. Getting Started with ColdFusion Understanding Dynamic Web Pages ColdFusion Benchmark Introducing the ColdFusion Language Introducing.
Introduction to PHP. PHP Origins Rasmus LerdorfRasmus Lerdorf (born Greenland, ed Canada) PHP originally abbreviation for ‘Personal Home Pages’, now ‘PHP.
Intermediate PHP (1) Data Structures, Functions, Basic OO & Error Handling.
May 11, 2011 PHP Hypertext Preprocessor. What is the technology? ✤ Server side scripting and programming language. ✤ Can be embedded in HTML ✤ Free and.
By Brian Patterson & Amanda Perez. PHP was originally created to maintain his personal homepage, hence the name PHP. Development began in 1994 and was.
May 11, 2011 PHP Hypertext Preprocessor. What is the technology? ✤ Server side scripting and programming language. ✤ Can be embedded in HTML ✤ Free and.
Java Server Team 8. Overview What is a Java Server? History Architecture Advantages Disadvantages Current Technologies Conclusion.
PHP Scripting Language. Introduction “PHP” is an acronym for “PHP: Hypertext Preprocessor.” It is an interpreted, server-side scripting language. Originally.
Session-01. Hibernate Framework ? Why we use Hibernate ?
Apache Jakarta Tomcat Suh, Junho. Road Map Tomcat Overview Tomcat Overview History History What is Tomcat? What is Tomcat? Servlet Container.
WHAT IS PHP PHP is an HTML-embedded scripting language primarily used for dynamic Web applications.
PHP PHP: Hypertext Preprocessing Matt Murphy & Dublas Portillo.
PHP PHP: Hypertext Preprocessing. What is PHP? PHP is a server-side scripting language designed specifically for the Web. An open source language PHP.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
Introduction to PHP. PHP PHP is the Hypertext Pre-processor –Script language –Embedded into HTML –Runs as Apache module –Can use DB (MySQL, Oracle, Microsoft.
UFCEKG-20-2 Data, Schemas & Applications Lecture 4 Server Side Scripting & PHP.
PHP HYPERTEXT: PREPROCESSOR By: Justin T. Pleva. WHAT IS PHP?  General purpose  Server-side web development  Console application.
What is PHP PHP (officially "PHP: Hypertext Preprocessor") is a server-side HTML-embedded scripting language –means that code does not need to be compiled.
PHP - Hypertext Preprocessor Yaron Benita De Paul University.
Script Programming Sutep JUNKHIAW
ITD 3194 Web Application Development Chapter 4: Web Programming Language.
Mandakini Ayushi Infotech Mandakini Kumari 22 nd July PHP Basic.
Languages in WEB Presented by: Jenisha Kshatriya BCM SS09.
PHP was created by Rasmus Lerdorf in It was initially server-side, traffic tracking script. PHP 2 (1995) Added database support, file uploads, regular.
PHP Professor Waterman. Agenda What is PHP Versions HTML Dynamic Web sites Interactive Web Sites Installing PHP Transfer pages to a Web hosting service.
PHP PHP: Hypertext Preprocessing Preston Brinks and Sean McKenzie.
PHP With Oracle 11g XE By Shyam Gurram Eastern Illinois University.
Fundamentals of Database Chapter 7 Database Technologies.
Technical Review - PHP Jang Jaeseok. Overview Introduction  What is PHP?  History of PHP  What can do with PHP?  Advantages of PHP PHP syntax.
Introduction to PHP and MySQL Kirkwood Center for Continuing Education By Fred McClurg, © Copyright 2015, Fred McClurg, All Rights.
2001 IT Conference RenoPage: 1 PHP 101 PHP – You can DO IT! Greg Lawler Brooks Institute of Photography February IT Conference Reno.
Archivists' Toolkit - CDL Presentation, October 17, 2005 The Archivists’ Toolkit Lee Mandell Brad Westbrook.
PHP Features. Features Clean syntax. Object-oriented fundamentals. An extensible architecture that encourages innovation. Support for both current and.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Introduction to CS520/CS596_026 Lecture Two Gordon Tian Fall 2015.
Introduction to PHP Advanced Database System Lab no.1.
Active Server Pages (ASP), also known as Classic ASP or ASP Classic, was Microsoft's first server-side script engine for dynamically generated web pages.
WEB DEVELOPMENT WITH PHP/MYSQL. WEB DEVELOPMENT COURSE HAS DIFFERENT NAME IN DIFFERENT INSITUTES, THIS IS A CORE COURSE FOR BS/MS STUDENTS. THIS IS ALSO.
CD Collection Hector Urtubia Fall Summary Motivation and Objective Technologies Used Project Design Database Design and Integration Demo.
Summary 1 Gordon Tian CS520/CS596_026. HTTP Browser – Chrome | FireFox XML/HTML/CSS3/JavaScript/REST Web Server – Nginx PHP/Python/Perl/Java/Ruby/Node.js.
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
An Investigation into using a Document Management System Presented by: Bijal RanaSupervisor: John Ebden.
 History  Frameworks & Libraries  Object-Oriented PHP  Advance Techniques & Classes  Future  Demo  Questions?
1 PHP Pattadon Sintusak ID PHP Programmingintroduction2 Content History of PHP What’s PHP? Purpose of PHP Structure of PHP Language Reference.
PHP Training With Live SSDN Technologies SSDN Technologies To request free demo session please mail us at or call us at
PHP on Windows server. About PHP history, usage [ 3 ] Basics about PHP Open, free, object oriented (recently added namespaces), procedural, type free.
A S P. Outline  The introduction of ASP  Why we choose ASP  How ASP works  Basic syntax rule of ASP  ASP’S object model  Limitations of ASP  Summary.
Introduction to PHP. PHP Origins Rasmus LerdorfRasmus Lerdorf (born Greenland, ed Canada) PHP originally abbreviation for ‘Personal Home Pages’, now ‘PHP.
Presented By Sushil K. Chaturvedi Assistant Professor SRCEM,Banmore 1.
Enterprise PHP PHP applications in the big business.
Introduction to PHP and MySQL – Creating Database-Driven Websites
Connecting Databases to the Web
Connecting Databases to the Web
And Why You Should Use It In You Websites
Introduction to PHP “PHP is a server-side scripting language designed specifically for the Web. Within an HTML page, you can embed PHP code that will be.
Introduction to PHP “PHP is a server-side scripting language designed specifically for the Web. Within an HTML page, you can embed PHP code that will be.
PHP / MySQL Introduction
Intro to PHP.
Presentation transcript:

<?php...

PHP 4 Internals Andi Gutmans PHP Group Member & Co-founder of Zend Technologies O’Reilly OSCON Monterey - July 2000

Presentation Overview What is PHP? Basic features of PHP How PHP interacts in the Web Environment History of PHP PHP 4 Architecture Design Concepts Building Blocks Other Highlights Future of PHP PHP Resources

What is PHP? HTML embedded scripting language Open source Native Web server support Rich selection of extensions for Web developers

Basic Features of PHP Multi-platform language (Linux, Windows NT, BSD, Solaris) Connectivity to most popular databases (MySQL, mSQL, ODBC, Microsoft SQL Server, Oracle, Informix, Sybase) Support of Java, XML, COM/DCOM (on Windows only), LDAP, IMAP

How PHP interacts in the Web Environment

<?php... History of PHP

PHP/FI 1 & 2: Rasmus Lerdorf created PHP/FI, a set of Perl scripts Evolution into PHP/FI 1.0 and 2.0, advanced code that understood complex scripts PHP/FI picked up momentum as a multi-purpose Web scripting language

PHP 3: 1997 – 1998 Zeev Suraski and I rewrote scripting language and other core functionality Firm establishment of PHP core development group and open-source community Exponential growth of installed base Technological advances…

PHP 3: 1997 – 1998 Technological Advances Replacement of previous ‘line-by-line’ with ‘whole script analysis’ parsing technique Full-fledged scripting engine - more powerful syntax and functionality Object oriented programming Syntax highlighter Extendibility Unified Resource management Performance

PHP 4: present PHP 4 and Zend Engine First development release – a conceptual quantum leap in design (May 1999 ) PHP 4 Beta 1 version (July 1999) Release of PHP (May 2000)

<?php... PHP 4 Architecture Design Concepts Building Blocks Other Highlights

Basic Design Concepts Language optimized for writing HTML- embedded web applications Native Web server support “Compile-first, execute-later” paradigm (fast run-time performance of complex scripts) Zend Engine kernel independent of PHP functional shell

Basic Design Concepts (cont) Independent modular components (Run-time Compiler, Executor, Functional API) Compatibility with PHP 3 Functional extendibility (plug-in modules such as optimizer)

Building Blocks of PHP 4 Scripting engine Web server interface Extension support

Building Blocks – Scripting Engine Scripting Engine ‘Compile-first, execute-later’ paradigm Key benefits Fast & efficient Modular design with well-defined building blocks Independent of PHP Feature rich

Building Blocks - Scripting Engine PHP and Zend Engine Interaction

Building Blocks - Scripting Engine Speed and Efficiency Intermediate code $two = 2; $copy_of_two = $two; $employees = array("Amy", "Brenda", "Charlotte"); $hired_employees = $employees; $table = "oak"; $chair =& $table; $chair = "plastic"; Reference counting

Building Blocks - Scripting Engine Speed and Efficiency Smart resource management $user_ids=sql_query("select id from users"); while ($user=sql_fetch_object($user_ids)) { $result=sql_query("select * from salaries where id=$user->id");... sql_free_result($result); } Memory caching High performance extension API

Building Blocks - Scripting Engine Modular Design Concrete separation between operational units Compiler Executor Multi-threading support TSRM (Thread-Safe Resource Manager) Per thread global variables Virtual current working directory Zend Engine is a building block in itself

Building Blocks - Scripting Engine Feature Rich Fewer limitations Object syntax overloading support (Java and COM extensions) New language constructs: here-docs, foreach() loops, Boolean and null values Many new features

Building Blocks of PHP 4 Scripting engine Web server interface Extension support

Building Blocks – Web Server Interface Web Server Interface Goal: Cross Web Server support (Apache, IIS, Java servlets) Server abstraction layer (SAPI) Centralization Output Output buffering support Possible hook for XSL translator Get/POST/cookie variables (including multi-dimensional arrays)

Building Blocks of PHP 4 Scripting engine Web server interface Extension support

Building Blocks – Extension Support Improved Extension Support New build system Easy to add new modules Loadable module support Script for quick creation of a new extension skeleton Zend API documentation

Other PHP 4 Highlights Native HTTP session support Fallback system for clients that don’t support cookies: Session identifiers carried in the query string of the URL PCRE (Perl-like regular expressions) Shockwave Integrated XML and MySQL support

Future of PHP Corba support XSLT support New PHP QA initiative Commercial backing by Zend Technologies Zend Engine improvements

PHP Resources Websites Mailing lists

…?> The End