$time = $timestamp_of_when_the_page_was_last_updated;
$date = gmdate( 'D, d M Y H:i:s',$date);
if ($date == @$_SERVER['HTTP_IF_MODIFIED_SINCE']){
header('HTTP/1.1 304 Not Modified',304);
die;
}
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s',$date) . ' GMT' );
// the rest of your page's code
this should work. To make it foolproff you need more stuff, but this will get you along the lines. for more info: http://www.php.net/header