function query($url, $proxy='', $post='', $basicAuth=':', $userAgent='Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.4', $headers=FALSE){
$ch = curl_init();
sleep(1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER,$headers);
curl_setopt($ch, CURLOPT_REFERER, 'http://google.com');
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_USERAGENT,$userAgent);
curl_setopt($ch, CURLOPT_ENCODING, 'utf-8');
curl_setopt($ch, CURLOPT_AUTOREFERER,1);
curl_setopt($ch, CURLOPT_TIMEOUT,999);
curl_setopt($ch, CURLOPT_PROXY, "$proxy");
@curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
function getResult($date )
$html = query('http://wap.betcityru.com/results.php?m=events&id_sport=0&date='.date('j.n.Y',$date));
return $html;
}
echo getResult(1376746200);хостинг zeoshost.ru