做下载用header("Location:")和echo输入地址的问题 我用header函数测试了一下,可以的挖。是不是LZ header哪里出了错?? 我Email: [email protected] 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 楼上有qq或msn么我就是用的header("Location:$go2");啊我测试了一下还是不行啊测试代码如下<?phpheader("Location:ftp://test:test@***.***/**.rar");?>说明一下,ftp://test:test@***.***/**.rar是下载地址,直接在浏览器里下载没什么问题 <?php$pName = "realname.zip"; //物理文件名$dName = "down.zip"; //下载文件名downFile($pName,$dName);function downFile($physicalName,$downloadName){ header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Content-Type: application/x-zip"); header("Content-Disposition: attachment; filename=$downloadName" ); header("Content-Transfer-Encoding: binary"); header("Content-Length: ".filesize($physicalName)); readfile($physicalName);}?> 如果是在iis下使用header是有这个问题 解析JSON的问题 新手入门PHP,应该从哪入手? PHP程序如何在本机发布 模版文件怎么包含动态文件?? php基础问题 phpmyadmin杀掉相应的进程,就点击kill这个进程就行了,但是现在进程太多了有上百个,我如何能杀掉所有进程? php语句中变量的问题 那个有这个软件的注册码?谢谢! 最近公司让我做一个足球彩票的网站,有兴趣的请各抒几建。谢谢 大家帮忙推荐下php的学习大纲 如何用php实现html格式邮件的发送啊? 哪有网站代码下啊PHP +MYSQL
header("Location:$go2");啊
我测试了一下还是不行啊
测试代码如下
<?php
header("Location:ftp://test:test@***.***/**.rar");
?>说明一下,ftp://test:test@***.***/**.rar是下载地址,直接在浏览器里下载没什么问题
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/x-zip");
header("Content-Disposition: attachment; filename=$downloadName" );
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize($physicalName));
readfile($physicalName);
}?>