phpÃæÊÔ£¨±ÊÊÔ²¿·Ö£©
ÆÕͨPHP³ÌÐòÔ±±ÊÊÔÌâ
1. ÓÃPHP´òÓ¡³öÇ°Ò»ÌìµÄʱ¼ä£¬´òÓ¡¸ñʽÊÇ2007Äê5ÔÂ10ÈÕ 22:21:21
2. PHP´úÂëÈçÏ£º
$a="hello";
$b=&$a;
unset($b);
$b="world";
echo $a;
Æä½á¹ûÊÇ£¿
3. PHP´úÂëÈçÏ£º
$str="cd";
$$str="landog";
$$str.="ok";
echo $cd;
Æä½á¹ûÊÇ£¿
4. ÓÃPHPдһ¶Î´úÂ룬ʵÏÖ²»Ê¹ÓõÚ3¸ö±äÁ¿£¬½»»»$a¡¢$bµÄÖµ£¬$a¡¢$bµÄ³õʼֵ×Ô¼º¶¨¡£
5. ¸ù¾ÝÌâÄ¿ÒªÇó£¬ÓÃPHPд³ö´úÂë¡£
±íÃûUser
ID Name Tel Content Date
1 ÕÅÈý 13333663366 ´óר±ÏÒµ 2006-10-11
3 ÕÅÈý 13612312331 ±¾¿Æ±ÏÒµ 2006-10-15
5 ÕÅËÄ 020-5566556 ÖÐר±ÏÒµ 2006-10-15
4 ÍõÎå 13521212125 ´óר±ÏÒµ 2006-12-25
2 …………
6 …………
¼ÙÉèÊý¾Ý¿âÁ¬½ÓÈçÏ£º
$mysql_db=mysql_connect("local","root","pass");
@mysql_select_db("DB",$mysql_db);
(1)²éѯ³öËùÓÐNameµÈÓÚ“ÕÅÈý”µÄ¼Ç¼£¬²¢Êä³ö¡£
(2)°´IDÉýÐò²éѯ£¬Ö»·µ»ØÅÅÐòºóµÄÇ°3Ìõ¼Ç¼£¬²¢Êä³ö¡£
6. javascriptÄÜ·ñ¶¨Òå¶þάÊý×飬Èç¹û²»ÄÜÄãÈçºÎ½â¾ö£¿
7. ¼ÙÉèa.htmlºÍb.htmlÔÚͬһ¸öÎļþ¼ÐÏÂÃ棬ÓÃjavascriptʵÏÖµ±´ò¿ªa.htmlÎåÃëÖÓºó£¬×Ô¶¯Ìøתµ½b.html¡£
8. ÓÐÁ½¸öÎļþa.htmlºÍa.php£¬´úÂëÈçÏ£º
a.html
<html>
<head>
<meta http-equiv=Content-Type content=text/html;charset=utf-8>
<title>PHP³ÌÐòÔ±ÃæÊÔ</title>
</head>
<body>
<center>
<form method="post" action="a.php">
<table border="1">
<tr>
<td align="right">ÐÕÃû£º</td>
Ïà¹ØÎĵµ£º
Ïà¹Ø²ÎÊý£º<textarea name=content>
Ä£°åµ÷Ó÷û£º$
¡¡¡¡Ìá½»ÐÂ±íµ¥µÄʱºòÓÃÈçÏ´úÂ룬½á¹ûÍêÈ«Õý³££º
<form name="frm_HelpMessageAdd" id="frm_HelpMessageAdd" action="manage.php" method="POST" enctype="multipart/form-data">
<input name="content" type="hidden" id="shopProduct_Intro"& ......
´úÂëÈçÏÂ,javascript:alert(document.cookie=”adminuser=”+escape(”admin”));javascript:alert(document.cookie=”adminpass=”+escape(”admin”));javascript:alert(document.cookie=”admindj=”+escape(”1″));
´ÓÕâ¾ä´úÂë¿ÉÒÔ¿´³ö£¬¾ÍÊÇÀûÓÃÁËcook ......
ÒÔϹØÓڴ˺¯Êý¸÷ÏîʹÓòÎÊý:
bool curl_setopt (int ch, string option, mixed value)
curl_setopt()º¯Êý½«ÎªÒ»¸öCURL»á»°ÉèÖÃÑ¡Ïî¡£option²ÎÊýÊÇÄãÏëÒªµÄÉèÖã¬valueÊÇÕâ¸öÑ¡Ïî¸ø¶¨µÄÖµ¡£
ÏÂÁÐÑ¡ÏîµÄÖµ½«±»×÷Ϊ³¤ÕûÐÎʹÓÃ(ÔÚoption²ÎÊýÖÐÖ¸¶¨)£º
CURLOPT_INFILESIZE
: µ±ÄãÉÏ´«Ò»¸öÎļþµ½Ô¶³ÌÕ¾µã£¬Õâ¸öÑ¡Ï ......
ͨ¹ýħÊÞ¿´PHPÉè¼Æģʽ
Ç°¶Îʱ¼ä¿´µ½ÓÐÈËÓÃħÊÞÀ´½âÊÍÉè¼Æģʽ£¬¸Ð¾õºÜÓÐÒâ˼£¬ÓÚÊÇÎÒ°ÑËü¸ÄÁ˸ģ¬ÓÖÌí¼ÓÁËЩÉè¼ÆģʽÄÚÈÝ£¬½ñÌì·¢³öÀ´¡£ÓÐЩµØ·½½è¼øÁËÇ°È˵ÄÄÚÈÝ£¬Ã»ÓÐ×¢Ã÷£¬ÇëÇ°È˲»Òª¼û¹Ö°¡¡£
ÕâÀïÓôó¼Ò¸ÐÐËȤµÄħÊÞ3À´ÌÖÂÛPHPµÄ¼¸ÖÖ³£¼ûµÄÉè¼Æģʽ£ºµ¥¼þģʽ¡¢²ßÂÔģʽ¡¢¹¤³§Ä£Ê½¡¢¹Û²ìÕßģʽ¡£½ñÌì¾Í½²ÕâËĸö°É£¬Ò ......