| 
 Posted by Hermann on 12/17/06 20:31 
The PHP code I use is the following: 
-------------------------------------------------------------------------------------------------- 
<? 
$file=$_SERVER['QUERY_STRING'] ; 
$fullFilePath=$_SERVER['DOCUMENT_ROOT'].$file ; 
$fileModifiedTime=filemtime($fullFilePath) ; 
 
if($_SERVER['HTTP_IF_MODIFIED_SINCE']) 
{	$ifModifiedTime=strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE'],0) ; 
	if($fileModifiedTime<=$ifModifiedTime) 
	{	header('HTTP/1.1 304 Not Modified') ; 
		exit ; 
	} 
} 
-------------------------------------------------------------------------------------------------- 
 
There is no closing php tag "?>", meaning that not a single byte is 
sent to the client. 
So I really dont know why are those few bytes being sent after the 
headers. 
They are just trash, just senseless 1s and 0s. They are always the same 
4 bytes.
 
  
Navigation:
[Reply to this message] 
 |