header('meta http-equiv="content-type"content="text/html; charset=gb2312"');
if( isset( $_REQUEST['submit']) && isset( $_REQUEST['key']))
$key = $_REQUEST['key'];
else $key = '周杰伦';
$url = 'http://music.sina.com.cn/yueku/search/getRecommendXml1dot0.php?q='.urlencode($key).'&l=50&json=json';
$data = file_get_contents( $url);
$data = json_decode( $data);
if( !count($data)) echo 'Not found';
?>
QQ客服
公众号
手机版
帮助中心