live Match Score

10
13693




[insert_php]

$mid=$_GET[‘mid’];

function get_data($url)
{
$ch = curl_init();
$timeout = 5;
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
$path=’http://www.espncricinfo.com/ci/engine/match/’.$mid.’.json?view=live;wrappertype=live;zakamai=1′;
$rs= get_data($path);
//echo $path;

$resp = json_decode($rs);
//var_dump($resp);

[/insert_php] [insert_php]

include (“score/live.php”);

[/insert_php]

10 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here