代碼如下:
function Steal($url
//$header[] = "Accept: text/vnd
$user_agent = "Mozilla/
$follow_loc =
$cookie_file ="
$ch = @curl_init();
@curl_setopt($ch
@curl_setopt($ch
@curl_setopt($ch
@curl_setopt($ch
@curl_setopt($ch
@curl_setopt($ch
@curl_setopt($ch
@curl_setopt($ch
if (trim($post_data)!= "") {
@curl_setopt($ch
@curl_setopt($ch
}
$result = @curl_exec($ch);
@curl_close($ch);
return $result;
}
//獲取網頁代碼的方法
function Cut($file
$message=explode($from
$message=explode($end
if ($message[
{
$message[
}
return $message[
}
//截取代碼的方法
From:http://tw.wingwit.com/Article/program/PHP/201311/21255.html