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

php curlµÄ¼¸¸öÀý×Ó

ʹÓÃPHPµÄcURL¿â¿ÉÒÔ¼òµ¥ºÍÓÐЧµØÈ¥×¥ÍøÒ³¡£ÄãÖ»ÐèÒªÔËÐÐÒ»¸ö½Å±¾£¬È»ºó·ÖÎöÒ»ÏÂÄãËùץȡµÄÍøÒ³£¬È»ºó¾Í¿ÉÒÔÒÔ³ÌÐòµÄ·½Ê½µÃµ½ÄãÏëÒªµÄÊý¾Ý
ÁË¡£ÎÞÂÛÊÇÄãÏë´Ó´ÓÒ»¸öÁ´½ÓÉÏÈ¡²¿·ÖÊý¾Ý£¬»òÊÇÈ¡Ò»¸öXMLÎļþ²¢°ÑÆäµ¼ÈëÊý¾Ý¿â£¬ÄÇžÍÊǼòµ¥µÄ»ñÈ¡ÍøÒ³ÄÚÈÝ£¬cURL ÊÇÒ»¸ö¹¦ÄÜÇ¿´óµÄPHP¿â¡£
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
// ³õʼ»¯Ò»¸ö cURL ¶ÔÏó
$curl = curl_init();
// ÉèÖÃÄãÐèҪץȡµÄURL
curl_setopt($curl, CURLOPT_URL, 'http://www.cmx8.cn');
// ÉèÖÃheader
curl_setopt($curl, CURLOPT_HEADER, 1);
// ÉèÖÃcURL ²ÎÊý£¬ÒªÇó½á¹û±£´æµ½×Ö·û´®Öл¹ÊÇÊä³öµ½ÆÁÄ»ÉÏ¡£
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
// ÔËÐÐcURL£¬ÇëÇóÍøÒ³
$data = curl_exec($curl);
// ¹Ø±ÕURLÇëÇ


Ïà¹ØÎĵµ£º

phpÖмòµ¥µÄ·ÖÒ³

<%
rs.pagesize=14
page=cint(Request.QueryString("page"))
if page<1 then
page=1
elseif page>rs.pagecount then
page=rs.pagecount
end if
rs.AbsolutePage=page
IF rs.BOF and rs.eof then
Response.Write("<br><br>±¾Õ¾ÔÝÎÞÈÕÖ¾¼Ç¼£¡£¡<br><br>")
response.end
end if ......

phpÒ³Ãæ¼ä´«Öµ

ÀýÈ磺
A.php
<?php
$usernane
?>
Òª½«A.phpÖصÄ$usernaneÖµ´«¸øÁíÍâÒ»¸öÒ³Ã棨B.php£©ÖеÄʵÏÖ·½·¨£º
<meta   http-equiv='refresh'   content='0;url='B.php£¿user=$username'>   
  ½ÓÊÕ   
  echo   $_GET['user'];
ÕâÑù£¬¾Í¿ÉÒÔÔÚB.phpÖзÃÎÊ$use ......

PHP/MYSQLʵÏÖ°´×Öĸ¼ìË÷

·½·¨Ò»£º½¨Ò»¸öÆ´Òô±í t_cosler £¬´æ·Åÿ¸ö×Öĸ¿ªÍ·µÄµÚÒ»¸öºº×ֵıàºÅºÍ×îºóÒ»¸öºº×ֵıàºÅ¡£
BatchFile code+------+--------+-------+
| f_PY | cBegin | cEnd |
+------+--------+-------+
| A | 45217 | 45252 |
| B | 45253 | 45760 |
.....
| Z | 54481 | 55289 |
+------+--------+-------+ ......

¸øPHP¼ÓËÙ£¬eAcceleratorÅäÖúÍʹÓÃÖ¸ÄÏ


Show All   1 2 3 4 5
±¾ÎÄÓÉMichaelÔ­´´ºÍÕûÀí£¬×ªÔØÇë±£Áô³ö´¦£¡http://www.toplee.com/blog/?p=100
Trackback URL: http://www.toplee.com/blog/wp-trackback.php?p=100
¶ÔÓÚ±¾ÎÄÖгöÏֵĴíÎóµ¼ÖÂÄúµÄËðʧ£¬Michael²»³Ðµ£ÔðÈΡ£
Ç°Ò»¶Îʱ¼äÍê³ÉÁË·þÎñÆ÷´ÓFreeBSD4.10µ½6.1µÄÉý¼¶£¬Í¬Ê±°ÑPHPÒ²Éý¼¶µ½ÁË×îÐ嵀 ......

PHPÖ®Socket±à³Ì


±¾ÆªÎÄÕÂÀ´Ô´ÓÚ ºÚ¿Í»ùµØ-È«Çò×î´óµÄÖÐÎĺڿÍÕ¾ Ô­ÎÄÁ´½Ó£ºhttp://hackbase.com/tech/2009-08-04/54550_1.html
2007Äê11ÔÂ01ÈÕ ÐÇÆÚËÄ ÏÂÎç 03:48ÈÃÎÒÃÇÒÔÒ»¸ö¼òµ¥µÄÀý×Ó¿ªÊ¼---Ò»¸ö½ÓÊÕÊäÈë×Ö·û´®,´¦Àí²¢·µ»ØÕâ¸ö×Ö·û´®µ½¿Í»§¶ËµÄTCP·þÎñ.ÏÂÃæÊÇÏàÓ¦µÄ´úÂë:PHP ´úÂë: ------------------------------------------------ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ