** Desc: Some examples on how to use the header() function of PHPYou find a detailed tutorial at expertsrt.com (English) or at ffm.junetz.de (German).These is also a good help about caching at web-caching.com.
** Example: see below. <br/><br/><b>Tip:</b> You can use these sites to check your headers: <a href="http://web-sniffer.net/">web-sniffer.net</a>, <a href="http://www.delorie.com/web/headers.html">delorie.com</a> or <a href="http://www.forret.com/projects/analyze/">www.forret.com</a>.
** Author: Jonas John
*/
// fix 404 pages:
header(HTTP/1.1 200 OK);
// set 404 header:
header(HTTP/1.1 404 Not Found);
// set Moved Permanently header (good for redrictions)
// use with location header
header(HTTP/1.1 301 Moved Permanently);
// redirect to a new location:
header(Location: http://www.example.org/);
// redrict with delay:
header(Refresh: 10; url=http://www.example.org/);
print You will be redirected in 10 seconds;
// you could also use the HTML syntax:// <meta http-equiv="refresh" content="10;http://www.example.org/ />
// override X-Powered-By: PHP:
header(X-Powered-By: PHP/4.4.0);
header(X-Powered-By: Brain/0.6b);
// content language (en = English)
header(Content-language: en);
// last modified (good for caching)
$time = time() – 60; // or filemtime($fn), etc
header(Last-Modified: .gmdate(D, d M Y H:i:s, $time). GMT);
// header for telling the browser that the content