Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÌÚѶphp¿ª·¢¹¤³ÌʦÃæÊÔÌâ

1
£®
Çë¶Ô
POSIX
·ç¸ñºÍ¼æÈÝ
Perl
·ç¸ñÁ½ÖÖÕýÔò
±í´ïʽµÄÖ÷Òªº¯Êý½øÐÐÀà±È˵Ã÷
ereg
preg_match
ereg_replace
preg_replace






2
£®
Çë˵Ã÷ÔÚ
php
.ini
ÖÐ
safe_mode
¿ªÆôÖ®ºó¶ÔÓÚ
PHP
ϵͳ
º¯ÊýµÄÓ°Ïì








3
£®
PHP5
ÖÐħÊõ
·½·¨
º¯ÊýÓÐÄļ¸¸ö£¬Çë¾ÙÀý˵Ã÷¸÷×ÔµÄÓ÷¨

__sleep
__wakeup
__toString
__set_state
__construct,
__destruct
__call,
__get,
__set,
__isset,
__unset
__sleep,
__wakeup,
__toString,
__set_state,
__clone
__autoload


4
£®
Çëд³öÈ㬲¢ËµÃ÷ÈçºÎÔÚÃüÁîÐÐÏÂÔËÐÐ
PHP
½Å±¾£¨Ð´³öÁ½ÖÖ·½Ê½£©Í¬Ê±Ïò
PHP
½Å±¾´«µÝ²ÎÊý£¿

1.
Php filename.php $agr1 $agr2
2.
php –r “<?php code?>”






5
£®
PHP
µÄÀ¬»øÊÕ¼¯»úÖÆÊÇÔõÑùµÄ









6
£®Ê¹¶ÔÏó¿ÉÒÔÏñÊý×éÒ»Ñù½øÐÐ
foreach
Ñ­»·£¬ÒªÇóÊôÐÔ±ØÐëÊÇ˽ÓС£
(Iterator
ģʽµÄ
PHP5
ʵÏÖ£¬Ð´Ò»ÀàʵÏÖ
Iterator
½Ó¿Ú
)














7
£®Çëдһ¶Î
PHP
´úÂë
£¬È·±£¶à¸ö½ø³ÌͬʱдÈëͬһ¸öÎļþ
³É¹¦












8
£®
ÓÃ
PHP
ʵÏÖÒ»¸öË«Ïò¶ÓÁÐ














9
£®
ʹÓÃÕýÔò±í´ïʽÌáÈ¡Ò»¶Î±êʶÓïÑÔ£¨
html
»ò
xml
£©´úÂë¶ÎÖÐÖ¸¶¨±êÇ©µÄÖ¸¶¨ÊôÐÔÖµ£¨Ð迼ÂÇÊôÐÔÖµ¶Ô²»¹æÔòµÄÇé¿ö£¬Èç´óСд²»Ãô¸Ð£¬ÊôÐÔÃûÖµÓëµÈºÅ¼äÓÐ
¿Õ¸ñµÈ£©¡£´Ë´¦¼ÙÉèÐèÌáÈ¡
test
±êÇ©µÄ
attr
ÊôÐÔÖµ£¬Çë×ÔÐй¹½¨°üº¬¸Ã±êÇ©µÄ´®

<test
attr=”ddd”>

<test
attr\s*=\s*[“|’](.*?)[”|’].*?>









10
£®ÇëʹÓÃ
socket
Ïà¹Øº¯Êý£¨·Ç
curl
£©ÊµÏÖÈçϹ¦
ÄÜ£º¹¹ÔìÒ»¸ö
post
ÇëÇ󣬷¢Ë͵½Ö¸¶¨
http server
µÄÖ¸¶¨¶Ë¿ÚµÄÖ¸¶¨ÇëÇ󷾶£¨Èç
http://www.example.com:8080/test
£©¡£ÇëÇóÖаüº¬ÒÔϱäÁ¿£º

Óû§Ãû£¨
username
£©£ºÎÂÈáÒ»µ¶
ÃÜÂ루
pwd
£©£º
&123=321&321=123&
¸öÈ˼ò½é£¨
intro
£©£º
Hello world
!

ÇÒ¸Ã
http server
ÐèÒªÒÔÏÂ
cookie
À´½øÐмò
µ¥µÄÓû§¶¯×÷¸ú×Ù£º

cur_query
£º
you&me
last_tm
£º
...
£¨ÉÏ´ÎÇëÇóµÄ
unix
ʱ¼ä´Á£¬¶¨Îªµ±Ç°ÇëÇóʱ¼äÇ°
10
ᅅ
cu


Ïà¹ØÎĵµ£º

ʵÏÖPHP·ÃÎÊMYSQLÊý¾Ý¿âµÄÀà

PHPµÄÒ»¸öÊý¾Ý¿â²Ù×÷Àà,ÒÔUTF8¸ñʽдÈë,Êý¾Ý¿âÄÚÖ±½ÓÏÔʾÕý³£ÖÐÎÄ,·ÀÖ¹²éѯ³ö´í
/**
* @author xggxnn
* ±¾ÀàÓÃÓÚʵÏÖÓйØÊý¾Ý¿âµÄ·ÃÎÊ
*
*/
class DBConnection {
private $host = "";
private $user = "";
private $pass = "";
private $DBname = "";
public $isConnected = false;
/**
* ¹¹Ôìº ......

PHP ÖÆ×÷ͨѶ¼£¨Áù£©

×òÌìÎÒÃÇʵÏÖÁËÒ»¸ö¼òµ¥µÄËÑË÷¹¦ÄÜ£¬½ñÌìÎÒÏëÁËһϣ¬Æäʵ»¹ÓпÉÒԸĽøµÄµØÖ·£¬ÈçÖ±½ÓÓÃIndex.php´úÌæSearch.php¡£
ÐÞ¸ÄIndex.phpÎļþ£¬ÐÞ¸ÄÒ»ÏÂËÑË÷±íµ¥
<!---ËÑË÷¿ò--->
<!--ÕâÀïµÄËùÓÐֵǰÃæ¼Óǰ׺“S_”ÒÔÇø·Ö-->
<form id="form1" name="form1" method="get" action="Index.php">
&n ......

ÖØȼÄãµÄPHP°²È«Ö®»ð

¶ÔÓڽű¾°²È«Õâ¸ö»°ÌâºÃÏñÓÀԶûÍêûÁË£¬Èç¹ûÄã¾­³£µ½¹úÍâµÄ¸÷ÖÖ¸÷ÑùµÄbugtraqÉÏ£¬Äã»á·¢ÏÖÓÐÒ»°ëÒÔÉ϶¼ºÍ½Å±¾Ïà¹Ø£¬ÖîÈçSQL
injection£¬XSS£¬Path Disclosure£¬Remote commands
executionÕâÑùµÄ×ÖÑ۱ȱȽÔÊÇ£¬ÎÒÃÇ¿´ÁËÖ®ºóµÄÓÃ;ÄѵÀ½ö½öÊÇ×¥È⼦?¶ÔÓÚÎÒÃÇÏë×öweb°²È«µÄÈËÀ´Ëµ£¬×îºÃ¾ÍÊÇÄÃÀ´Ñ§Ï°£¬¿ÉÊÇÍòÎï×¥¸ùÔ´£¬ÎÒà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ