search
Homephp教程PHP源码简单的PHP搜歌代码
简单的PHP搜歌代码May 25, 2016 pm 05:10 PM

代码

<form name="" method="post" action="">
<input name="key" type="text" /> <input name="submit" type="submit" value="搜歌" />
</form>
<pre class="brush:php;toolbar:false">
<?php 
header(&#39;meta http-equiv="content-type"content="text/html; charset=gb2312"&#39;);
if( isset( $_REQUEST[&#39;submit&#39;]) && isset( $_REQUEST[&#39;key&#39;]))
$key = $_REQUEST[&#39;key&#39;];
else $key = &#39;周杰伦&#39;;
$url = &#39;http://music.sina.com.cn/yueku/search/getRecommendXml1dot0.php?q=&#39;.urlencode($key).&#39;&l=50&json=json&#39;;
$data = file_get_contents( $url);

$data = json_decode( $data);
if( !count($data)) echo &#39;Not found&#39;;
?>
MP3URL; $music = file_get_contents( $music); $music = str_replace('iask_music_song_url="' , '', str_replace('";' , '', $music)); ?>

NAME.' MUSIC_URL : '.$one->NAME.''.' SINGER_NAME'.$one->SINGERCNAME;?>

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools