Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ÈýÖÖ³£Óÿò¼ÜZend¡¢symfony ºÍ CakePHP

Ä£ÐÍ¿ò¼Ü
¿ò¼Ü˼Ïë¾ÍÊÇÌṩһÖÖ¿ÉÒÔÔÚ¶à¸öÓ¦ÓóÌÐòÖÐʹÓõÄÉè¼Æ¡£ËùÓÐÓ¦ÓóÌÐò¶¼ÓдóÁ¿Í¨ÓõĻù±¾ÄÚÈÝ —— ¾ßÌåµØ˵£¬¾ÍÊÇijÀàÓëÊý¾Ý¿âµÄ½Ó¿Ú¡¢Ä³Ð©Ó¦ÓóÌÐòÂß¼­¡¢Ó¦ÓóÌÐò³ÊÏÖ¸øÓû§µÄÄÚÈݵȡ£Èç¹ûÄú±àд¹ýÐí¶à PHP Ó¦ÓóÌÐò£¬Ôò»áÖªµÀÕâЩ»ù±¾ÄÚÈÝÊÇʲô¡£Äú¿ÉÄÜÒѾ­±àд¹ýÒ»×麯Êý»ò´ÓÊý¾Ý¿âÖжÁÈ¡Êý¾ÝºÍÏòÊ ......

7 ÖÖÁ÷ÐÐ PHP IDE µÄ±È½Ï

±àд¹ØÓÚ PHP µÄϵÁÐÎÄÕÂÈÃÎÒ¸ü¼ÓÉî¿ÌµØÁ˽âÁË PHP ¿ª·¢ÈËÔ±µÄÊÀ½ç¡£ÎÒºÍÐí¶à PHP ³ÌÐòÔ±½»Ì¸¹ý£¬×îÁîÎÒ¾ªÆæµÄÊÇÖ»ÓкÜÉÙµÄÈËʹÓà IDE¡£´ó¶àÊý³ÌÐòԱʹÓÃÎı¾±à¼­Æ÷£¬±ÈÈç Microsoft® Windows® ÉϵļÇʱ¾¡¢Emacs »òÕß Vim¡£
ÎÒÌáµ½µÄÕâЩÎı¾±à¼­Æ÷£¨ÒÔ¼°ÎÒûÌáµ½£©¶¼ÊǺܲ»´íµÄ —— ÎÒ²»ÏëÌÖÂÛÄĸö±à ......

ÎåÖÖ³£¼ûµÄ PHP Éè¼Æģʽ

Éè¼Æģʽ Ò»Ê齫Éè¼ÆģʽÒýÈëÈí¼þÉçÇø£¬¸ÃÊéµÄ×÷ÕßÊÇ Erich Gamma¡¢Richard Helm¡¢Ralph Johnson ºÍ John Vlissides Design£¨Ë×³Æ “ËÄÈ˰©¡£Ëù½éÉܵÄÉè¼Æģʽ±³ºóµÄºËÐĸÅÄî·Ç³£¼òµ¥¡£¾­¹ý¶àÄêµÄÈí¼þ¿ª·¢Êµ¼ù£¬Gamma µÈÈË·¢ÏÖÁËijЩ¾ßÓй̶¨Éè¼ÆµÄģʽ£¬¾ÍÏñ½¨ÖþʦÉè¼Æ·¿×Ӻͽ¨ÖþÎïÒ»Ñù£¬¿ÉÒÔΪԡÊÒµÄλÖûò ......

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

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

Nginx+PHP ÅäÖ鶴

Õâ¸ö©¶´ÑϸñÉÏ˵²¢²»ÊÇ Nginx ºÍ PHP ±¾ÉíµÄ©¶´Ôì³ÉµÄ£¬¶øÊÇÓÉÅäÖÃÔì³ÉµÄ¡£ÔÚÎÒ֮ǰдµÄÐí¶àÅäÖÃÖУ¬¶¼ÆÕ±é´æÔÚÕâ¸ö©¶´¡£
¼òÒ×¼ì²â·½·¨£º
´ò¿ª Nginx + PHP ·þÎñÆ÷ÉϵÄÈÎÒâÒ»ÕÅͼƬ£¬È磺
http://blog.lrenwang.com/test.png
Èç¹ûÔÚͼƬÁ´½Óºó¼ÓÒ»´® /xxx.php £¨xxxΪÈÎÒâ×Ö·û£©ºó£¬È磺
http://blog.lrenwang.com/ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ