Home  >  Article  >  Backend Development  >  How to set response headers in php

How to set response headers in php

藏色散人
藏色散人Original
2020-07-23 10:34:365148browse

How to set the response header in php: 1. Set the response header file type, with statements such as "header('Content-Type: text/css;charset=GBK');"; 2. Set redirection; 3 , setting file download.

How to set response headers in php

php set response header

1, set response header file type

2, Redirect (jump to other web pages)

3. Download file

Recommended: "PHP Tutorial"

The above is the detailed content of How to set response headers in php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn