asp、php文件下载页面的关键代码
作者:admin 日期:2011-07-09
Asp代码已测试,演示地址:http://www.jiaocheng.cn/
Asp:
Response.ContentType="application/octet-stream"
Response.AddHeader "content-disposition", "attachment; filename=jiaocheng.url"
Response.BinaryWrite('内容')
Php:
Header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=jiaocheng.url;");
echo $Shortcut;
Header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=jiaocheng.url;");
echo $Shortcut;
去掉 “当前安全设置会使计算机有风险”提示
作者:admin 日期:2011-07-09
广告位