【求助】能用php下载别的网站的流媒体文件吗【急】 如题,希望下载开始后,过程不需要手动操作比如下载http://dl.dropbox.com/u/2707242/shuisuo.wma各位高手帮帮忙啊 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <?php$filename = "theDownloadedFileIsCalledThis.mp3";$myFile = "/absolute/path/to/my/file.mp3";$mm_type="application/octet-stream";header("Cache-Control: public, must-revalidate");header("Content-Type: " . $mm_type);header("Content-Length: " .(string)(filesize($myFile)) );header('Content-Disposition: attachment; filename="'.$filename.'"');header("Content-Transfer-Encoding: binary\n");readfile($myFile);?> PHP 数据访问有没好的框架用 让字段值自动增加 php的fopen()函数在solaris下面无法读取远程文件 问个很简单,但我确不明白的问题! 求解关于preg_replace函数 怎样获得url传递的变量值? My_SQL 一个它段,存取多个数据 小问题,快来拿分啊 php拼字符串 请教 SOS: 请教怎么在百度统计里标志受访页面是微信打开? 寻找一个人合作,做网站 如何在网页中实现文件下载?
$filename = "theDownloadedFileIsCalledThis.mp3";
$myFile = "/absolute/path/to/my/file.mp3";$mm_type="application/octet-stream";header("Cache-Control: public, must-revalidate");
header("Content-Type: " . $mm_type);
header("Content-Length: " .(string)(filesize($myFile)) );
header('Content-Disposition: attachment; filename="'.$filename.'"');
header("Content-Transfer-Encoding: binary\n");readfile($myFile);?>