Content-Type: xxxxyyyyLocation: xxxx: yyyyzzzzStatus: nnnxxxxxx can appear more than twice in the new MultipartMIME header specification. Example 1: redirect the browser to the official PHP website .? PhpHeader (Location: www.php.net;); exit ;? Example 2
Content-Type: xxxx/yyyy Location: xxxx: yyyy/zzzz Status: nnn xxxxxx can appear more than twice in the new Multipart MIME Type. Example 1: redirect the browser to the official PHP website. ? Php Header (Location: http://www.php.net;); exit ;? Example 2
Content-Type: xxxx/yyyy
Location: xxxx: yyyy/zzzz
Status: nnn xxxxxx
The new Multipart MIME type can appear more than twice.
Example
Example 1: redirect the browserPHP.
Header ("Location: http://www.php.net ";);
Exit;
?>
Example 2: to obtain the latest data every time, instead of the data in the Proxy or cache, you can use the following Header
Header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT ");
Header ("Last-Modified:". gmdate ("D, d m y h: I: s"). "GMT ");
Header ("Cache-Control: no-cache, must-revalidate ");
Header ("Pragma: no-cache ");
?>
Example 3: make the user's browser unable to find the file information.
Header ("Status: 404 Not Found ");
?>
Example 4: allow users to download files. Header ("Content-type: application/x-gzip ");
Header ("Content-Disposition: attachment; filename = file name ");
Header ("Content-Descr resume ption: PHP3 Generated Data ");
?>