用HTML 都可以。
这个页面可以包含请求链接。
$url = 'http://www.dengguoquan.com';
function CommonCurl($url){
$ch = curl_init();
curl_setopt ($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch,CURLOPT_USERAGENT,"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)");
$res = curl_exec($ch);
curl_close ($ch);
return $res;
}
print_r(CommonCurl($url));
?>无标题文档
file_get_contents
fopen、file_get_contents都可以,详细百度: php 打开url