1 / 30

Introduction to PHP

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.

theodorek
Download Presentation

Introduction to PHP

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to PHP

  2. 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.

  3. Introduction to PHP Course topics Course plan: • Reminder about Web Technologies. • Dynamic Web with PHP. • Tools.

  4. Introduction to PHP Reminder about Web Technologies. Web Basics

  5. Reminder about Web Technologies Preview Here the chapters which we will approach: • Internet. • World Wide Web. • The W3C. • HTML. • XHTML. • CSS. • JavaScript.

  6. 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.

  7. 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…

  8. 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.

  9. 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

  10. Reminder about Web Technologies XHTML • eXtensible HyperText Markup Language. • XML Markup Language. • Extend versions of HTML. • Need to be well-formed • XML documents.

  11. Reminder about Web Technologies CSS • CSS : Cascading Style Sheet. • Allows to design a HTML document. • Separates design and content. • Simplifies maintenance of Web pages.

  12. 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.

  13. Introduction to PHP Dynamic Web with PHP A more powerful web

  14. Dynamic Web with PHP Preview Here the chapters which we will approach: • History of PHP. • Presentation.

  15. 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.

  16. 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

  17. 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

  18. 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

  19. Dynamic Web with PHP Stop-and-think Do you have any questions ?

  20. Introduction to PHP Tools How to choose the tools

  21. Tools Preview Here the chapters which we will approach: • Web Server. • Database Server. • Automatic Setup. • Development tools. • Frameworks.

  22. Tools Web Server • Apache • IIS • NginX • Lighttpd • …

  23. Tools Web Server

  24. Tools DB Server • MySQL • SQLite • Oracle • DB2 • SQL Server • …

  25. Tools DB Server

  26. Tools Automatic Setup Apache, MySQL & PHP : • WAMP • Windows • MAMP • Mac • LAMP • Linux

  27. Tools Development Tools • Source code editors : • Notepad++ (Windows). • TextMate (Mac OS X). • gedit (Linux). • Multi-platform IDE : • Eclipse PDT. • Aptana. • Adobe Dreamweaver. • PhpStorm.

  28. Tools Frameworks PHP Frameworks : • Symfony • Zend Framework • Cake PHP • …

  29. 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).

  30. Introduction to PHP Summary of the Module Frameworks Development Tools PHP History Web Server DB Server

More Related