百度MP3单曲搜索新型代理-

浏览:589 发布日期:2014/01/25 分类:应用插件 关键字:
http://www.xxx.com/sogo.php?url=蝶恋花 http://www.xxx.com/sogo.php?url=忘记你我做不到
 
 
<?php
//PHP 百度MP3单曲搜索新型代理http://www.xxx.com/sogo.php?url=蝶恋花
function m_v($url) {
       $user_agent = $_SERVER[HTTP_USER_AGENT];
       $ch = curl_init(); 
       $timeout = 30;
       curl_setopt($ch, CURLOPT_URL, $url);
       curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
       curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
       @ $file = curl_exec($ch);
       curl_close($ch);
       return $file;
}
if(isset ($_GET[url])){
       $ur=$_GET[url];
       $so = $ur;$so= urlencode("$so");
       $ul = http://music.baidu.com/song/0/download?title=.$so.;
       $str = m_v($ul);
       preg_match_all(|<a href="([^>]+)">|, $str, $b);
       $f = count($b[1]);
       for($i=0;$i<$f;$i++){
       $m = $i +1;
      $file=$b[1][$i];
}
}
header("location:$file");

?>
评论(0 相关
后面还有0条评论,点击查看>>