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;
上一篇: 去掉 “当前安全设置会使计算机有风险”提示
下一篇: IE8和IE9下ewebeditor上按钮无效的解决办法
文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags: asp php
相关日志:
下一篇: IE8和IE9下ewebeditor上按钮无效的解决办法
文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags: asp php
相关日志:
评论: 0 | 引用: 0 | 查看次数: 2490
发表评论
广告位