Rumah >pembangunan bahagian belakang >tutorial php >利用google获取二级域名_PHP教程
header("Content-Type: text/html;charset=utf-8");
set_time_limit(0);
error_reporting(E_ERROR);
function geturl($keywords, $page, $num)
{
$page = ($page - 1) * 10;
$content = file_get_contents("http://www.google.com/search?sclient=psy-ab&hl=en&start=$page&source=hp&q=$keywords&pbx=1&oq=$keywords&num=$num&aq=f&aqi=g4");
$preg = '/