<?php$url=isset ($_get[' url '))? Trim ($_get[' url '): "; $url =" http://v.yinyuetai.com/video/692888 ";//http:// v.yinyuetai.com/video/2185713$time=$_server[' request_time '; $content = file_get_contents ($url);//Get title Preg_match ( '/property= ' Og:title "[\s]+content=" ([^ "]*)". *?>/i ', $content, $title);//Get Cover Preg_match ('/property= ' og:image ' Content= "([^"]*) ". *?>/', $content, $images);//Get MV Idpreg_match ('/[\d]+/', $url, $song _id); $title = $title [1];$ Images= $images [1]; $song _id= $song _id[0];//parsing json$songurl = "Http://www.yinyuetai.com/api/info/get-video-urls?" Callback=callback&videoid= ". $song _id." &_= ". $time; $data = file_get_contents ($songurl), if (Strpos ($data," callback ")!== false) {$lpos = Strpos ($data," (") ; $rpos = Strrpos ($data, ")"); $data = substr ($data, $lpos + 1, $rpos-$lpos-1);} $json = Json_decode ($data, true); Echo $title. " <br/> "; echo" fluent address: ". $json [' Hcvideourl ']." <br/> "; echo" HD Address: ". $json [' Hdvideourl ']." <br/> "echo" Super Clear Address: ". $json [' Hevideourl ']." <br/> "; eCho "
PHP Get audio Platform Video