Docsity

PHP: A Comprehensive Introduction to this Widely-Used Web Development Language, Study notes of C programming

Partial preview of the text

Download PHP: A Comprehensive Introduction to this Widely-Used Web Development Language and more Study notes C programming in PDF only on Docsity!

Brief Introduction

of PHP

---Xue Wu

PHP (Personal Home Page)

 Web development

  1. can be embedded into HTML
  2. generally runs on a web server
  3. Act as a filter: (from PHP 4, performance improved by complied input as bytecode)
  4. widely used and free charge

PHP--- example

 Grammatical: ---Can be both embedded into HTML and separated from HTML code:

(XML passers )

<%... %>

PHP---Usage

Competitor: Microsoft’s Active Server Page Sun Microsystems’ Java Server Page Mode_perl  Rapid Application Development (RAD) Cake PHP, PRADO, Symfony, Codelgniter

PHP--- Interaction with THML:

echo Can output multiple strings:

---result: hello world  Print Can only output single string:

---Parse error: parse error in d:adminmyphphometest.p hp3 on line 54

PHP---Security

 To prevent from damaging on your website

  1. Error Report
  2. SQL Injections
  3. Cross Site Scripting
  4. Session Security

Reference

 http://en.wikipedia.org/wiki/PHP last retrieved on 2009-2-  http://www.phpchina.com/?action_thematici nfoview_itemid_34132.html “PHP tutorial”, last retrieved on 2009-2-  http://www.phpfreaks.com/tutorial/php- security/page9 “PHP Security”, last retrieved on 2009-3-