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

PHP CURLÏê½â

ÉùÃ÷£º²¹³ä·­ÒëÁËÔ­ÌûÖм¸´¦Î´·­Òë´¦¡£
---------------------------------------------------- תÌû¿ªÊ¼ -------------------------------------------------------
PHPÖеÄCURLº¯Êý¿â£¨Client URL Library Function£© 
curl_close - ¹Ø±ÕÒ»¸öcurl»á»° 
curl_copy_handle - ¿½±´Ò»¸öcurlÁ¬½Ó×ÊÔ´µÄËùÓÐÄÚÈݺͲÎÊý 
curl_errno - ·µ»ØÒ»¸ö°üº¬µ±Ç°»á»°´íÎóÐÅÏ¢µÄÊý×Ö±àºÅ 
curl_error - ·µ»ØÒ»¸ö°üº¬µ±Ç°»á»°´íÎóÐÅÏ¢µÄ×Ö·û´® 
curl_exec - Ö´ÐÐÒ»¸öcurl»á»° 
curl_getinfo - »ñÈ¡Ò»¸öcurlÁ¬½Ó×ÊÔ´¾ä±úµÄÐÅÏ¢ 
curl_init - ³õʼ»¯Ò»¸öcurl»á»° 
curl_multi_add_handle - ÏòcurlÅú´¦Àí»á»°ÖÐÌí¼Óµ¥¶ÀµÄcurl¾ä±ú×ÊÔ´ 
curl_multi_close - ¹Ø±ÕÒ»¸öÅú´¦Àí¾ä±ú×ÊÔ´ 
curl_multi_exec - ½âÎöÒ»¸öcurlÅú´¦Àí¾ä±ú 
curl_multi_getcontent - ·µ»Ø»ñÈ¡µÄÊä³öµÄÎı¾Á÷ 
curl_multi_info_read - »ñÈ¡µ±Ç°½âÎöµÄcurlµÄÏà¹Ø´«ÊäÐÅÏ¢ 
curl_multi_init - ³õʼ»¯Ò»¸öcurlÅú´¦Àí¾ä±ú×ÊÔ´ 
curl_multi_remove_handle - ÒƳýcurlÅú´¦Àí¾ä±ú×ÊÔ´ÖеÄij¸ö¾ä±ú×ÊÔ´ 
curl_multi_select - Get all the sockets associated with the cURL extension, which can then be "selected" 
curl_setopt_array - ÒÔÊý×éµÄÐÎʽΪһ¸öcurlÉèÖûỰ²ÎÊý 
curl_setopt - Ϊһ¸öcurlÉèÖûỰ²ÎÊý 
curl_version - »ñÈ¡curlÏà¹ØµÄ°æ±¾ÐÅÏ¢ 
curl_init()º¯ÊýµÄ×÷Óóõʼ»¯Ò»¸öcurl»á»°£¬curl_init()º¯ÊýΨһµÄÒ»¸ö²ÎÊýÊÇ¿ÉÑ¡µÄ£¬±íʾһ¸öurlµØÖ·¡£ 
curl_exec()º¯ÊýµÄ×÷ÓÃÊÇÖ´ÐÐÒ»¸öcurl»á»°£¬Î¨Ò»µÄ²ÎÊýÊÇcurl_init()º¯Êý·µ»ØµÄ¾ä±ú¡£ 
curl_close()º¯ÊýµÄ×÷ÓÃÊǹرÕÒ»¸öcurl»á»°£¬Î¨Ò»µÄ²ÎÊýÊÇcurl_init()º¯Êý·µ»ØµÄ¾ä±ú¡£
<?php
$ch = curl_init("http://www.baidu.com/");
curl_exec($ch);
curl_close($ch);
?>  
curl_version()º¯ÊýµÄ×÷ÓÃÊÇ»ñÈ¡curlÏà¹ØµÄ°æ±¾ÐÅÏ¢£¬curl_version()º¯ÊýÓÐÒ»¸ö²ÎÊý£¬²»Çå³þÊÇ×öʲôµÄ 
¿ÉÉèÖõIJÎÊýÓУº 
CURLOPT_AUTOREFERER 
×Ô¶¯ÉèÖÃheaderÖеÄrefererÐÅÏ¢ 
CURLOPT_BINARYTRANSFER 
ÔÚÆôÓÃCURLOPT_RETURNTRANSFERʱºò½«»ñÈ¡Êý¾Ý·µ»Ø 
CURLOPT_COOKIESESSION 
ÆôÓÃʱcurl»á½ö½ö´«µÝÒ»¸ösession cookie£¬ºöÂÔÆäËûµÄcookie£¬Ä¬ÈÏ×´¿öÏÂcurl»á½«ËùÓе


Ïà¹ØÎĵµ£º

php dateʱ¼ä±¾µØ»¯ÎÊÌâ »òÊÇdateº¯Êýʱ²îÎÊÌâµÄ½â¾ö

¹«Ë¾·´Ó¦Äͷɼҽ̺ͼæÖ°ºǫ́ÏÔʾµÄʱ¼ä¸úʵ¼Ê×¢²áµÄʱ¼äÏà²î8Сʱ¡£
·¢ÏÖʱ¼äÒ»Ö±¶Ô²»ÉÏ£¬date("Y-m-d h:i:s") ×ÜÊÇÓë·þÎñÆ÷ʱ¼ä²î8¸öСʱ£®ºóÀ´·¢ÏÖ£¬ÎÒÏÖÔڵĻúÆ÷ÉϵÄphpÊÇ5.14µÄ£®¡¡
Ô­À´´Óphp5.1.0¿ªÊ¼£¬php.iniÀï¼ÓÈëÁËdate.timezoneÕâ¸öÑ¡ÏĬÈÏÇé¿öÏÂÊǹرյÄ
Ò²¾ÍÊÇÏÔʾµÄʱ¼ä£¨ÎÞÂÛÓÃʲôphpÃüÁ¶¼ÊǸñÁ ......

±àд°²È« PHP Ó¦ÓóÌÐòµÄÆ߸öÏ°¹ß

ÔÚÌá¼°°²È«ÐÔÎÊÌâʱ£¬ÐèҪעÒ⣬³ýÁËʵ¼ÊµÄƽ̨ºÍ²Ù×÷ϵͳ°²È«ÐÔÎÊÌâÖ®Í⣬Äú»¹ÐèҪȷ±£±àд°²È«µÄÓ¦ÓóÌÐò¡£ÔÚ±àд PHP Ó¦ÓóÌÐòʱ£¬ÇëÓ¦ÓÃÏÂÃæµÄÆ߸öÏ°¹ßÒÔÈ·±£Ó¦ÓóÌÐò¾ßÓÐ×îºÃµÄ°²È«ÐÔ£º
ÑéÖ¤ÊäÈë
±£»¤Îļþϵͳ
±£»¤Êý¾Ý¿â
±£»¤»á»°Êý¾Ý
±£»¤¿çÕ¾µã½Å±¾£¨Cross-site scripting£¬XSS£©Â©¶´
¼ìÑé±íµ¥ post
Õ ......

PHPÍøÕ¾¿ª·¢·½°¸£¨¿ª·¢ÐÂÈ˱ضÁ£©

Ò»¡¢¿ª·¢³ÉÔ±
a)ÏîÄ¿Ö÷¹Ü
b)Ò³ÃæÃÀ¹¤
c)Ò³Ã濪·¢
d)·þÎñ¶Ë³ÌÐò¿ª·¢
e)ϵͳÓëÊý¾Ý¹ÜÀí
f)²âÊÔÓë°æ±¾¿ØÖÆ
¶þ¡¢ ÍøÕ¾×鿪·¢¼òÃ÷Á÷³Ì
Èý¡¢ ¿ª·¢¹¤¾ßÓë»·¾³
a)·þÎñÆ÷ÅäÖÃ
i. WEB·þÎñÆ÷£º FreeBSD6.1+Apache2.0+PHP5.0£¬SVN°æ±¾¿ØÖÆ·þÎñ(½ö²âÊÔ»ú)¡£
ii.Êý¾Ý¿â·þÎñÆ÷£º WIN2003 server+SQL server  ......

php+ajaxÖÐÖÐÎÄÊä³ö£¯ÊäÈëÂÒÂëÎÊÌâ

ÏÈ˵ͨ¹ýjavascript·¢ËÍʱµÄÂÒÂëÎÊÌ⣬Èç¹û·¢Ë͵ÄÊÇÖÐÎÄ£¬¾ÍÒªÓÃescapeÕâ¸öº¯Êý´¦Àí£¬±ÈÈ磺
£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½
var url="testurl.php?name="+"¸Õ¸Õ";
£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½
ÄÇô¾ÍÒª¸Ä³É
£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½
var url="testurl. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ