300 likes | 307 Views
Introduction to PHP. Introduction to PHP. Course objectives. At the end of this lesson you will be able to:. Explain how PHP was created . Explain what the dynamic Web is . Install PHP. Introduction to PHP. Course topics. Course plan:. Reminder about Web Technologies.
E N D
Introduction to PHP Course objectives At the end of this lesson you will be able to: • Explain how PHP wascreated. • Explainwhat the dynamic Web is. • Install PHP.
Introduction to PHP Course topics Course plan: • Reminder about Web Technologies. • Dynamic Web with PHP. • Tools.
Introduction to PHP Reminder about Web Technologies. Web Basics
Reminder about Web Technologies Preview Here the chapters which we will approach: • Internet. • World Wide Web. • The W3C. • HTML. • XHTML. • CSS. • JavaScript.
Reminder about Web Technologies Internet • Internet is a public worldwide computer network system. • Use the standard Internet Protocol Suite (TCP/IP). • Network of networks • Public access to many resources and services.
Reminder about Web Technologies World Wide Web • Abbreviated as WWW. • Commonly known as the Web. • Interlinked hypertext documents accessed via the Internet. • May contain • Text • Images • Videos • Etc…
Reminder about Web Technologies The W3C • World Wide Web Consortium. • Normalization organism. • Created in 1994. • Managed by MIT, ERCIM and Keio university. • He promotes: • Web technologies compatibility (recommandations). • More informations : http://www.w3.org/ • He creats standards.
Reminder about Web Technologies HTML : The Web Language • HyperText Markup Language. • Permit to format a document. • Descriptive language. • Hypertext concept. • Easy to use. • Light Format. • Current version : 4.01
Reminder about Web Technologies XHTML • eXtensible HyperText Markup Language. • XML Markup Language. • Extend versions of HTML. • Need to be well-formed • XML documents.
Reminder about Web Technologies CSS • CSS : Cascading Style Sheet. • Allows to design a HTML document. • Separates design and content. • Simplifies maintenance of Web pages.
Reminder about Web Technologies JavaScript • Scripting language inspired by many languages, including Java and Python. • Client side Interpreted by web browser • Different from PHP. • Complementary to HTML and CSS. • Add dynamism ! • User Interactions. • Animations. • Navigation Help.
Introduction to PHP Dynamic Web with PHP A more powerful web
Dynamic Web with PHP Preview Here the chapters which we will approach: • History of PHP. • Presentation.
Dynamic Web with PHP History of PHP • PHP originally stood for « Personal Home Page ». • Invented in 1994 by Rasmus Lerdorf. • Initially a set of Perl scripts to maintain his personal homepage. • Renamed later in Personal Home Page/Forms Interpreter. • First publication code in 1995.
Dynamic Web with PHP History of PHP • In 1997, Zeev Suraski and Andi Gutmans, rewrote the parser. • The based of PHP 3 ! • Language's name change to the recursive initialism PHP : • Hypertext Preprocessor. Andi Gutmans • In 1999, creation of Zend Engine. • Ze(ev) + (A)nd(y) = Zend. • In 2004, release of PHP 5 with OOP support. • Currently: 5.3.5 – January 2011. Zeev Suraski
Dynamic Web with PHP Presentation • Server-side scripting language. • Web server generate dynamic web pages. • Provide interactive web sites that interface to databases or other data sources. • Server-side ≠ Client-side (JavaScript). • More secure because the scripts are never visible to the client. PHP ASP JSP Ruby JavaScript VBScript
Dynamic Web with PHP Presentation Request the index.php Reception of request 1 2 Reply in format HTML Reception and display of page 7 8 Server Client Loading of file 3 Transmission of the file to the interpreter 4 Interpreter PHP generates HTML code 5 Sends generated code to the server 6
Dynamic Web with PHP Stop-and-think Do you have any questions ?
Introduction to PHP Tools How to choose the tools
Tools Preview Here the chapters which we will approach: • Web Server. • Database Server. • Automatic Setup. • Development tools. • Frameworks.
Tools Web Server • Apache • IIS • NginX • Lighttpd • …
Tools Web Server
Tools DB Server • MySQL • SQLite • Oracle • DB2 • SQL Server • …
Tools DB Server
Tools Automatic Setup Apache, MySQL & PHP : • WAMP • Windows • MAMP • Mac • LAMP • Linux
Tools Development Tools • Source code editors : • Notepad++ (Windows). • TextMate (Mac OS X). • gedit (Linux). • Multi-platform IDE : • Eclipse PDT. • Aptana. • Adobe Dreamweaver. • PhpStorm.
Tools Frameworks PHP Frameworks : • Symfony • Zend Framework • Cake PHP • …
Tools Exercises • Dowload and install on your computer LAMP, WAMP or MAMP depending of your OS. • Start the services. • With your web browser : • Try to go to localhost. • Try to go to phpMyAdmin. • Download and install a source code editor depending of your OS. • Download and install Eclipse for PHP Developers (including PDT and other stuffs).
Introduction to PHP Summary of the Module Frameworks Development Tools PHP History Web Server DB Server