|
<?php
$id=$_GET["id"];
$ids=array(
"hktv1"=>"6249145640963543040",
"hktv3"=>"6249163931127910400",
"hktv2"=>"6249163190084571136",
);
$url = "http://a1.news.hkbtv.cn/server/article/load?aid=".$ids[$id]."&hkbtv_client=hgvd";
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
$data = curl_exec($curl);
preg_match('/"videoUrl": "(.*?)"/i', $data, $sn);
print_r($sn[1]);
//header('Location:'.$sn[1]);
?>
请教下为什么不出来结果 哪里错误》》》》
|
|