ÎÒ×öÁËÒ»¸öphpС³ÌÐò£¬µ«ÊÇcpuÕ¼Óùý¸ß
Õâ¸öÓ¦¸ÃÔõô½â¾öÄØ£¿
¾ÍÊÇÒ»¸öС˵С͵
http://ttkshu.com
http://qqrom.cn
ÕâÑù×ÓµÄ
×ÜÊDZ»¿Õ¼äÉ̾¯¸æËµcpuÕ¼Óùý¸ß
ÈçºÎÓÅ»¯ÄØ£¿
ÓÐûÓÐÏà¹ØµÄÎÄÕÂ
code
´úÂëÌù³öÀ´Ñ½
·ÅÂý͵µÄËٶȾ͵ÍÁË¡£Ã¿ÍµÒ»¸öÒ³sleep(1);
PHP code:
// ÊéÄ¿¹æÔò
$curl = 'http://www.paoshu8.com/Html/Book/'.$cid.'/'.$bid.'/Index.shtm';//͵ȡµØÖ·
$pt->load($curl);
$content = $pt->result('content');//»ñµÃ´úÂë
$pt_templets_bookname = $pt->steal($content,'С˵','Ãâ·ÑÔĶÁ',false,false);//$pt->steelÊÇÒ»¸öÀà »ñÈ¡2¸öÖ¸¶¨´úÂëÖмäµÄÖµ
$pt_templets_bookname = str_replace('¡¶','',$pt_templets_bookname);
$pt_templets_bookname = str_replace('¡·','',$pt_templets_bookname);
$pt_templets_author = $pt->steal($content,'ÊÇ×÷Õߣº',',²éÔÄ',false,false);
$pt_templets_showtime = $pt->steal($content,'×îиüУº','|',false,false);
$pt_templets_readlist = $pt->steal($content,' <div id="BookText">','<div id="End">',false,false);
$pt_templets_readlist = str_replace(' </div>','',$pt_templets_readlist);
if ($pt_config_reurl){
$pt_templets_readlist = preg_replace('/href="(.*).shtm"/','href="'.$pt_site_url.str_replace('<cid>',$cid,str_replace('<sid>','\\1',str_replace
Ïà¹ØÎÊ´ð£º
¸÷λ´óÏÀ
ÇóÒ»¶Îphp´úÂë
¿ÉÒÔʵÏÖÒÔϹ¦ÄÜ
Õë¶Ô²»Í¬µÄä¯ÀÀÆ÷ÏÔʾ²»Í¬µÄͼƬ
¾ÍÊÇÓÐÒ»ÕÅͼƬ£¬Ö»Ïë¸øie6Óû§¿´µ½
Èç¹ûie7¡¢chrome¡¢firefoxÓû§ä¯ÀÀÔòÏÔʾÁíÍâÒ»ÕÅͼƬ  ......
´úÂëÈçÏ£º
function uc_get_user($username, $isuid=0) {
$return = call_user_func(UC_API_FUNC, 'user', 'get_user', array('username'=>$username, 'isuid'=>$isuid));
return UC_CONNECT == 'mysql' ......
PHP code:
$date = '2009-12-25';
$ptn = '/([\d]{4})[- \/](0?[\d]|1[0-2])[-\/ ](0?[\d]|[1-2][\d]|3[0-1])/';
if (preg_match($ptn,$date,$out))
{
print_r($out);exit();
}
½á¹ûΪ:
PHP code:
......
°²×°ÁËAPHACHE
¿ÉÊÇÔËÐÐÍøÒ³Ê²Ã´¶¼Ã»ÓÐ
¼±
»¹ÏëÇëÎÊÏÂ,JSP.PHP.ASP.NET ÄǸö¹¤×ʸ߰¡,
»ØÌû¾Í¼Ó·Ö
»¹Òª×°php5
×öµÃºÃ£¬Äĸö¹¤×ʶ¼¸ß¡£
http://download.csdn.net/source/1712990 Õâ¸öÀïÃæÓÐÕû¸öPHPµÄ° ......