21,886
社区成员
发帖
与我相关
我的任务
分享
$url = 'http://116.199.115.230/recplay2/vod/vods/20160624/gztv_tv_rtmp20160624065630_1.mp4';
$fp = fopen("test.mp4", "wb");
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_exec($ch);
$filename = 'http://116.199.115.230/recplay2/vod/vods/20160624/gztv_tv_rtmp20160624065630_1.mp4';
//文件的类型
header('Content-type: application/mpeg4');
//下载显示的名字
header('Content-Disposition: attachment; filename="3.mp4"');
readfile("$filename");
exit();