AuthorMessage
Meka][Meka
Unstopable
Posts: 700

few simple header examples
HTTP Status Header (Always the first to be called)
Code:

<?php
  header("HTTP/1.0 404 Not Found");
?>

redirect code
Code:

<?php
header("Location: http://www.meka-meka.com/"); /* Redirect browser */
exit; /* Make sure that code below does not get executed when we redirect. */
?>

Disable caching for most clients
Code:

<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");    // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
                                                     // always modified
header("Cache-Control: no-store, no-cache, must-revalidate");  // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");                          // HTTP/1.0
?>

njoy
-/Meka][Meka