php curl简单的问问小偷程序

function getcontents($url){
 $ch = curl_init();
 curl_setopt ($ch, CURLOPT_URL, $url);
 curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
 curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT,10);
 $fcontents = curl_exec($ch);
    return $fcontents;
}

$str=getcontents(“http://wenwen.soso.com/“);

找到自己想要的 preg_match_all 替换 一下,so easy吧? HOHO~

  1. No comments yet.

  1. No trackbacks yet.