jon
Uploaded by
14 SLIDES
334 VUES
140LIKES

Overview of PHP: History, Syntax, Advantages, and Web Applications

DESCRIPTION

This technical review provides an in-depth overview of PHP, a popular server-side scripting language that is widely used for web development. It begins with an introduction to PHP, including its origins and evolution from Personal Home Page tools to PHP3 and PHP4. The review highlights what PHP can achieve, its syntax, and its advantages as a web development tool. Additionally, it covers advanced PHP functions, database connectivity, and practical examples of utilizing PHP in web applications, such as form handling and displaying browser information.

1 / 14

Download Presentation
Télécharger la présentation

Overview of PHP: History, Syntax, Advantages, and Web Applications

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. Technical Review- PHP 20021085 Jang Jaeseok

  2. Overview • Introduction • What is PHP? • History of PHP • What can do with PHP? • Advantages of PHP • PHP syntax • Language syntax • Web related variables • Examples

  3. Introduction-What is PHP? • Professional HTML Processor (PHP3) • Scripting Language • Server-side, • HTML-embedded • Cross-platform (UNIX, LINUX, Windows) • APM? • Apache + PHP + MySQL • Web Server & PHP & DB

  4. Introduction- History of PHP • Personal Home Page Tools (PHP/FI) • By Rasmus Lerdorf in 1994 • Improved Version • PHP3 • PHP4 Zend • Additional function • Improve processing speed • Popular script language • Used by about 200,000 sites

  5. Introduction- What can do with PHP? • All functions of CGI are available (C,Perl) • Get data with HTML • Active Web page • Control cookie • Advanced functions • Active GIF image • HTTP certification • File uploading

  6. Introduction- Advantages of PHP • Linkage to DB • MySQL, dBase, mSQL, etc. • Connect with another services • IMAP, SNMP, HTTP, POP3, etc • Raw socket • Make possible using undefined protocol • Simple coding skill • Type Automation of variable • Similarity with other language -> C++

  7. PHP syntax- Language syntax • Embedded in HTML ( between <?, ?> ) • Variables • Type automation • Dynamic variable • Type casting • Ex) $var = (int) ”123abc”; • Control structures • If, switch, do/while, for

  8. PHP syntax- Web related variables • GET, POST, cookie, environment variables • <FORM ACTION="test.php3" METHOD="POST"> <INPUT TYPE=text NAME=var> </FORM> • $var is set to the input of text field • PHP Information • <? • mysql_connect('localhost','',''); • phpinfo(); • ?>

  9. PHP syntax- Web related variables

  10. Examples- Showing Browser and IP Address • <HTML> <HEAD><TITLE>PHP Example</TITLE></HEAD> <BODY> You are using <? echo $HTTP_USER_AGENT ?><BR> and coming from <? echo $REMOTE_ADDR ?> </BODY> </HTML>

  11. Examples- Showing Browser and IP Address

  12. Examples- Form Handling

  13. Examples- Form Handling Input Result

  14. Q & A

More Related
SlideServe
Audio
Live Player
Audio Wave
Play slide audio to activate visualizer