What is PHP PHP stands for Hypertext Preprocessor. PHP is a powerful and widely-used open source server-side scripting language to write dynamically generated web pages. PHP scripts are executed on the server and the result is sent to the browser as plain HTML. PHP can be integrated with the number of popular databases, including MySQL, PostgreSQL, Oracle, Sybase, Informix, and Microsoft SQL Server.
Mobile No. +91-7767904499 | E-mail :- support@classboat.com | www.classboat.com
History of PHP ➢PHP began in 1995 when Rasmus Lerdorf developed a Perl/CGI script toolset he called the Personal Home Page or PHP ➢PHP 2 released 1997 (PHP now stands for Hypertex Processor). Lerdorf developed it further, using C instead ➢PHP3 released in 1998 (50,000 users) ➢PHP4 released in 2000 (3.6 million domains). Considered debut of functional language and including Perl parsing, with other major features ➢PHP5.0.0 released July 13, 2004 (113 libraries>1,000 functions with extensive object-oriented programming) ➢PHP5.0.5 released Sept. 6, 2005 for maintenance and bug fixes
Mobile No. +91-7767904499 | E-mail :- support@classboat.com | www.classboat.com
Advantages of PHP over Other Languages ➢Easy to learn ➢Open source
➢Portability ➢Fast Performance
➢Vast Community
Mobile No. +91-7767904499 | E-mail :- support@classboat.com | www.classboat.com
Object Oriented PHP 1. 2. 3. 4.
Encapsulation Polymorphism Inheritance Multiple Inheritance: actually unsupported
Classboat.com Mobile No. +91-7767904499 | E-mail :- support@classboat.com | www.classboat.com
Alternatives to PHP ➢Alternatives to PHP ➢Active Server Pages (ASP) ➢Java server pages (JSP) ➢Ruby
Classboat.com Mobile No. +91-7767904499 | E-mail :- support@classboat.com | www.classboat.com
How PHP generates HTML/JS Web pages 1: Client from browser send HTTP request (with POST/GET variables) 2: Apache recognizes that a PHP script is requested and sends the request to PHP module 3: PHP interpreter executes PHP script, collects script output and sends it back 4: Apache replies to client using the PHP script output as HTML output
Client Browse r
1
4 Apache
PHP module
3
2
Classboat.com Mobile No. +91-7767904499 | E-mail :- support@classboat.com | www.classboat.com
For more Information Visit
https://www.classboat.com/tech/php-classes-pune Mobile No. +91-7767904499 | E-mail :- support@classboat.com | www.classboat.com