header(string,replace,http_response_code)
string 必需,规定要发送的报头字符串.
replace 可选,指示该报头是否替换之前的报头,或添加第二个报头.
默认是 true(替换),false(允许相同类型的多个报头).
http_response_code 可选,把 http 响应代码强制为指定的值,(php 4 以及更高版本可用)
跳转:
header('location: http://www.phpfensi.com/');发送http状态
header("status: 404 not found");
设置缓存:
header("cache-control: no-cache, must-revalidate"); // http/1.1
header("expires:sat,26 jul 1997 05:00:00 gmt");
利用header做文件下载功能:
- header("content-type:application/pdf");// 文件将被称为 downloaded.pdf
- header("content-disposition:attachment;filename='downloaded.pdf'");// pdf 源在 original.pdf 中
- readfile("original.pdf");
波比源码 – 精品源码模版分享 | www.bobi11.com
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 本站源码并不保证全部能正常使用,仅供有技术基础的人学习研究,请谨慎下载
8. 如遇到加密压缩包,请使用WINRAR解压,如遇到无法解压的请联系管理员!
波比源码 » php header()函数详细实用方法
波比源码 » php header()函数详细实用方法
buy levaquin generic order levaquin 500mg pills
order accutane online brand amoxil 250mg order azithromycin 250mg without prescription
oral arimidex 1mg generic viagra using mastercard buy generic viagra
doxycycline for sale doxycycline 100mg cost furosemide without prescription
altace order astelin 10 ml without prescription astelin 10 ml price
order catapres 0.1 mg catapres for sale online spiriva 9mcg cheap
olmesartan 10mg tablet buy calan 120mg online order acetazolamide for sale
isosorbide 40mg over the counter order lanoxin 2250 mg without prescription order micardis 80mg sale
purchase zyban pill order generic zyban 150mg quetiapine tablet
order modafinil pill order stromectol 12mg generic stromectol for head lice
fluvoxamine 100mg drug cymbalta 20mg uk glipizide 5mg cost
buy azithromycin 250mg pills order neurontin generic buy gabapentin 800mg
cost cialis 40mg order viagra 100mg online cheap buy viagra 50mg online
order lasix online order doxycycline for sale order hydroxychloroquine 400mg online cheap
norvasc 5mg ca viagra 25mg real cialis
linezolid over the counter order linezolid 600mg without prescription gambling games
essay writing buy an assignment buy generic viagra
cialis coupon sildenafil for women viagra 50mg cheap
priligy us cytotec order synthroid online
tadalafil online buy viagra professional sildenafil 100mg ca
zyloprim 300mg for sale order zetia 10mg generic ezetimibe us
buy methotrexate 10mg without prescription order generic methotrexate 10mg reglan without prescription
baclofen pill tizanidine cheap toradol price
imitrex order purchase levaquin generic purchase avodart for sale
fluconazole oral order fluconazole 100mg online buy viagra 100mg for sale