Download presentation
Presentation is loading. Please wait.
Published byJulianna Smith Modified over 9 years ago
1
1 PHP Pattadon Sintusak ID. 49541154
2
PHP Programmingintroduction2 Content History of PHP What’s PHP? Purpose of PHP Structure of PHP Language Reference Different between PHP and ASP
3
PHP Programmingintroduction3 HISTORY of PHP PHP stands for “Professional Home Page” It’s first build in 1994 Developer is Mr.Rasmus Lerdorf Nowadays, PHP is the fourth version, The first version was known as Personal Homepage Tools in 1994 to 1995 The second was PHP/FI in middle of 1995 Version 3 was known as PHP3 firstly used in 1997
4
PHP Programmingintroduction4 Developers of PHP Zeev Suraski, Israel Andi Gutmans, Israel Shane Caraveo, Florida USA Stig Bakken, Norway Andrey Zmievski, Nebraska USA Sascha Schumann, Dortmund, Germany Thies C. Arntzen, Hamburg, Germany Jim Winstead, Los Angeles, USA Rasmus Lerdorf, North Carolina, USA
5
PHP Programmingintroduction5 What’s PHP? It’s a Script language for showing webpage, arrange in Server Side Script group like ASP Insert in HTML for working Can compile in UNIX, Windows NT/2000/XP, Windows 9x High efficiency,especially when connect with Database such as MySQL, msSQL, Sybase and PostgreSQL etc.
6
PHP Programmingintroduction6 PHP can do !! CGI Database-enable web page Database Adabas D InterBase Solid DBase mSQLSybase Empress MySQLVelocis FilePro OracleUnix dbm Informix PostgreSQL
7
PHP Programmingintroduction7 Purpose of PHP Open source No cost implementation – PHP is free! Server side Crossable Platform HTML embedded Simple language Efficiency XML parsing Server side Database module File I/O Text processing Image processing
8
PHP Programmingintroduction8 Working of PHP Working on Server Working with HTML Can insert PHP commands as you want in HTML document Show output by Web Browsers
9
PHP Programmingintroduction9 Language structure of PHP XML style Example. <?php echo “Hello World ! ”; echo “I am PHP”; ?>
10
PHP Programmingintroduction10 Language structure of PHP(cont.) SGML style Example. <? echo “Hello World ! ”; echo “I am PHP”; ?>
11
PHP Programmingintroduction11 Language structure of PHP(cont.) Java Language style language command PHP Example. echo “Hello World”;
12
PHP Programmingintroduction12 Language structure of PHP(cont.) ASP Style Example. <% echo “Hello World ! ”; echo “I am PHP”; %>
13
PHP Programmingintroduction13 Language structure of PHP(cont.) XML style is the most popular style. Output is Hello World ! I am PHP Notice - Language structure is similar to C and Perl - use ( ; ) to end each command. File must save in.php (or php3)
14
PHP Programmingintroduction14 Language Reference Comments - similar to comment in C, C++ and Unix Example. <?php echo “Hello !”; // comment 1 line /* at least 2 lines */ echo “World”; # comment in shell-style ?>
15
PHP Programmingintroduction15 “Echo” command is a command for showing output at browser program format echo statement1 or variable1, statement2 or variable2, statement 3 or variable3, … statement is bestrided by double quote (“ “) or single quote (‘ ‘) Variable of PHP always begin with $ like Perl
16
PHP Programmingintroduction16 Example 1 intro.php Example –1
17
PHP Programmingintroduction17 Example 2 (date.php) Example –2 Today’s Date: Today's Date: Thursday March 10, 2003
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.