Download - Php Introduction
![Page 1: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/1.jpg)
![Page 2: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/2.jpg)
Vincent Pontier aka Elroubio – Creator Of elePHPant
PHP mascot
![Page 3: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/3.jpg)
THREE-TIERED WEB SITE: WAMP/LAMP
![Page 4: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/4.jpg)
SERVER SIDE TECHNIQUES
• PHP• Java EE: Servlet, JSP• .NET• CGI / Perl (Very old)• Ruby• …
![Page 5: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/5.jpg)
HISTORYPHP (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.
![Page 6: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/6.jpg)
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
![Page 7: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/7.jpg)
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.
![Page 8: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/8.jpg)
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.
![Page 9: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/9.jpg)
PHP SYNTAX
![Page 10: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/10.jpg)
PHP KEYWORDS
![Page 11: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/11.jpg)
PHP TAG
![Page 12: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/12.jpg)
PROGRAM
![Page 13: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/13.jpg)
DEVELOPMENT ENVIRONMENT
![Page 14: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/14.jpg)
WHITESPACE & COMMENTS
![Page 15: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/15.jpg)
ECHO VS PRINT
![Page 16: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/16.jpg)
SINGLE (‘) VS DOUBLE (“) QUOTES
![Page 17: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/17.jpg)
OPERATORS
![Page 18: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/18.jpg)
ARITHMETIC OPERATORS
![Page 19: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/19.jpg)
COMPARISON OPERATORS
![Page 20: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/20.jpg)
LOGICAL OPERATORS
![Page 21: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/21.jpg)
COMBINATION OPERATORS
![Page 22: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/22.jpg)
OPERATOR PRECEDENCE
![Page 23: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/23.jpg)
CONTROLLING THE FLOW
![Page 24: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/24.jpg)
![Page 25: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/25.jpg)
![Page 26: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/26.jpg)
REPEATING CODE
![Page 27: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/27.jpg)
![Page 28: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/28.jpg)
ARRAYS
![Page 29: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/29.jpg)
INDEXED ARRAYS
![Page 30: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/30.jpg)
ASSOCIATIVE ARRAYS
![Page 31: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/31.jpg)
FUNCTION
![Page 32: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/32.jpg)
RETURN FROM FUNCTION
![Page 33: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/33.jpg)
CODE REUSE
![Page 34: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/34.jpg)
FUNCTION
![Page 35: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/35.jpg)
PHP FRAMEWORKS
![Page 36: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/36.jpg)
![Page 37: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/37.jpg)
![Page 38: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/38.jpg)
![Page 39: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/39.jpg)
![Page 40: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/40.jpg)
![Page 41: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/41.jpg)
![Page 42: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/42.jpg)
![Page 43: Php Introduction](https://reader035.vdocuments.us/reader035/viewer/2022070509/589ef1981a28abe97f8b691f/html5/thumbnails/43.jpg)
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