21,886
社区成员
发帖
与我相关
我的任务
分享
<?php
error_reporting(0);
$u = $_GET['url'];
var_dump();
if(!isset($u)){
echo '?url=qq.com';
die;
}
$url=file_get_contents('http://www.downfi.com/video/s?wd='.$u);
if(!($file=fopen($url,"r"))) //通过http协议打zd开文件
{
echo"文件不能打开";
exit;
}
$line="";
while(!feof($file))
{
$line.=fgets($file,102400);
}
fclose($file);
preg_match_all('/<source src=\"(.*?)\" type=\"video/mp4\" />/',$line, $outlast, PREG_SET_ORDER);
$last=$outlast[0][1];
echo $last;
?>