最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
音乐采集程序
时间:2008-03-09 编辑:简简单单 来源:一聚教程网
header("Content-Type: text/html; charset=gb2312");
session_start();
set_time_limit(0);
$str = file_get_contents('http://music.soso.com/');
preg_match_all('/([^<]*)/isU',$str,$out,PREG_SET_ORDER );
$iCount = count($out);
for($i=0;$i<$iCount;$i++){
$str2 = file_get_contents('http://music.soso.com/music.cgi?ty=liss&w='.urlencode($out[$i][1]).'&pl='.urlencode($out[$i][3]));
preg_match('/urls[key++][s]=[s]"([^"]*)"/i',$str2,$out2);
echo ($i+1).'、'.$out[$i][3].' => '.$out[$i][1].' => '.$out2[1].'
';
ob_flush();
flush();
}
?>
-
上一个: Php部分常见问题总结二
-
下一个: php实现截屏功能代码
相关文章
- 安装程序出现禁止进行安装解决方法 11-10
- CMD命令怎么结束程序 结束程序的方法 06-19
- 中国银行牌价小程序在哪 中国银行牌价小程序位置介绍 04-07
- 小睡眠app有用吗?小睡眠app小程序有什么用 03-09
- 摩拜单车小程序入口在哪 02-24
- 摩拜单车小程序怎么退押金 摩拜单车小程序需要押金吗 02-24