php method to modify response header settings: 1. Jump function, the code is [header('location:index.php')]; 2. Page refresh, the code is [header('refresh:3; url=index.php')].
php method to modify response header settings:
Jump function
header('location:index.php');
Page refresh
header('refresh:3;url=index.php');
Output picture
header('Content-type:image/gif,image/png,image/jpg,image/jpeg');
Download content
header('Content-type:application/octet-stream');
Related learning recommendations: PHP programming from entry to proficiency
The above is the detailed content of How to modify response header settings in php. For more information, please follow other related articles on the PHP Chinese website!