Home > Article > Backend Development > How to set response headers in php
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.
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!