×
新网 > 建站推广 > 正文

php如何修改响应头设置

  • 作者:zccc
  • 来源:网络
  • 2020-07-29 18:03:25

php修改响应头设置的方法:1、跳转功能,代码为【header('location:index.php')】;2、页面刷新,代码为【header('refresh:3;url=index.php')】。php修改响应头设

php修改响应头设置的方法:1、跳转功能,代码为【header('location:index.php')】;2、页面刷新,代码为【header('refresh:3;url=index.php')】。

php修改响应头设置的方法:

跳转功能

header('location:index.php');

页面刷新

header('refresh:3;url=index.php');

输出图片

header('Content-type:image/gif,image/png,image/jpg,image/jpeg');

下载内容

header('Content-type:application/octet-stream');

相关学习推荐:PHP编程从入门到精通

  • 相关专题

免责声明:本文内容由互联网用户自发贡献自行上传,本网站不拥有所有权,也不承认相关法律责任。如果您发现本社区中有涉嫌抄袭的内容,请发送邮件至:operations@xinnet.com进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。

免费咨询获取折扣

Loading