Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Php Introduction

348 views

Published on

Php Basics

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Php Introduction

  1. 1. Vincent Pontier aka Elroubio – Creator Of elePHPant  PHP mascot
  2. 2. THREE-TIERED WEB SITE: WAMP/LAMP
  3. 3. SERVER SIDE TECHNIQUES • PHP • Java EE: Servlet, JSP • .NET • CGI / Perl (Very old) • Ruby • …
  4. 4. HISTORY PHP (PHP: Hypertext Preprocessor) was created by Rasmus Lerdorf in 1994. It was initially  developed for HTTP usage logging and server-side form generation in Unix.  PHP 2 (1995) transformed the language into a Server-side embedded scripting language. Added  database support, file uploads, variables, arrays, recursive functions, conditionals, iteration, regular  expressions, etc. PHP 3 (1998) added support for ODBC data sources, multiple platform support, email protocols  (SNMP,IMAP), and new parser written by Zeev Suraski and Andi Gutmans .  PHP 4 (2000) became an independent component of the web server for added efficiency. The  parser was renamed the Zend Engine. Many security features were added. PHP 5 (2004) adds Zend Engine II with object oriented programming, robust XML support using the  libxml2 library, SOAP extension for interoperability with Web Services, SQLite has been bundled  with PHP  PHP 6 and Unicode(2005) lacking native Unicode support at the core language level PHP 7(2015) (PHP next generation), which aims at optimizing PHP performance by refactoring the  Zend Engine while retaining near-complete language compatibility.
  5. 5. WHAT IS PHP? • PHP is a scripting language that was originally designed for  web development to produce dynamic webpages. • For this purpose, PHP code is embedded into HTML  • PHP originally stood for ”PERSONAL HOME PAGE” - now - Hypertext Preprocessor • Installed on more than 240 million websites • Cost-effective, Scope for Customization, Faster, Preferred  over others
  6. 6. USAGE • PHP is a general-purpose scripting language that is especially  suited to server-side web development where PHP generally  runs on a web server.  • PHP code in a requested file is executed by the PHP runtime,  usually to create dynamic web page content.  • PHP is also used for command-line scripting and client-side  GUI applications. • PHP can be deployed on most web servers, many operating  systems and platforms, and can be used with many relational  database management systems.
  7. 7. RESOURCES • PHP includes free and open source libraries. • PHP is a fundamentally Internet-aware system. • Many database servers, embedded SQL libraries such as  embedded PostgreSQL, MySQL and SQLite, LDAP servers,  and others.  • PHP allows developers to write extensions in C to add  functionality to the PHP language.  • These can then be compiled into PHP or loaded dynamically at  runtime.
  8. 8. PHP SYNTAX
  9. 9. PHP KEYWORDS
  10. 10. PHP TAG
  11. 11. PROGRAM
  12. 12. DEVELOPMENT ENVIRONMENT
  13. 13. WHITESPACE & COMMENTS
  14. 14. ECHO VS PRINT
  15. 15. SINGLE (‘) VS DOUBLE (“) QUOTES
  16. 16. OPERATORS
  17. 17. ARITHMETIC OPERATORS
  18. 18. COMPARISON OPERATORS
  19. 19. LOGICAL OPERATORS
  20. 20. COMBINATION OPERATORS
  21. 21. OPERATOR PRECEDENCE
  22. 22. CONTROLLING THE FLOW
  23. 23. REPEATING CODE
  24. 24. ARRAYS
  25. 25. INDEXED ARRAYS
  26. 26. ASSOCIATIVE ARRAYS
  27. 27. FUNCTION
  28. 28. RETURN FROM FUNCTION
  29. 29. CODE REUSE
  30. 30. FUNCTION
  31. 31. PHP FRAMEWORKS
  32. 32. INFORMATION • Usual file extensions .php, .phtml .php5 .phps • Paradigm imperative, object-oriented • Appeared in : 1995[1] • Designed by : Rasmus Lerdorf • Developer :The PHP Group • Typing discipline Dynamic, weak • Major implementations Zend Engine, Roadsend PHP, Phalanger, Quercus, Project Zero, HipHop • Influenced by C, Perl, Java, C++, Tcl[1] • Influenced PHP4Delphi • Programming language : C • OS : Cross-platform • License : PHP License • Website : http://www.php.net
  33. 33. THANK YOU amitpatil@whitecode.co.in

×