Brief Introduction of PHP: - Xue Wu
Brief Introduction of PHP: - Xue Wu
of PHP
---Xue Wu
PHP-Characteristics
Database Connected (eg. PHP&MySQL)
Compatible
Object Oriented Programming
PHP--- example
Grammatical:
---Can be both embedded into HTML and
separated from HTML code:
<? . . . ?>
<?php . . . ?> (XML passers )
<script language="php"> . . . </script>
<% . . . %>
PHP---Usage
Competitor:
PHP--- example
Annotation:
/*C style, Multiple lines*/
// C style one line
#Unix Style
Print
Can only output single string:
<?
$a="hello";
$b="world";
print "a","b";
?>
---Parse error: parse error in
d:adminmyphphometest.p
hp3 on line 54
PHP---Security
1.
2.
3.
4.
PHP---Security
5. Directory traversal
6. Cross-site request forgery
7. Remote file inclusion
Reference
http://en.wikipedia.org/wiki/PHP last
retrieved on 2009-2-28
http://www.phpchina.com/?action_thematici
nfoview_itemid_34132.html PHP tutorial,
last retrieved on 2009-2-28
http://www.phpfreaks.com/tutorial/phpsecurity/page9 PHP Security, last retrieved
on 2009-3-1