Code: Select all
Last-Modified: Wed, 14 May 2003 13:06:17 GMT
Expires: Fri, 16 Jun 2003 13:06:17 GMTAny help would be much appreciated.
Moderator: General Moderators
Code: Select all
Last-Modified: Wed, 14 May 2003 13:06:17 GMT
Expires: Fri, 16 Jun 2003 13:06:17 GMTThanks a bunch. I'll go and see it!Web Dummy wrote:Here's everything you need. All the functions with descriptions of exactly what they do.
http://www.php.net/manual/en/ref.filesystem.php
Code: Select all
<?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: private, 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
?>Code: Select all
<?
$headers = get_headers("http://localhost/test.php");
print $headers[5]."\n".$headers[8];
?>Code: Select all
Array
(
[0] => HTTP/1.1 200 OK
[1] => Date: Wed, 29 Nov 2006 15:35:29 GMT
[2] => Server: Apache/2.2.3 (Unix) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8c PHP/5.1.6 mod_apreq2-20051231/2.5.7 mod_perl/2.0.2 Perl/v5.8.7
[3] => X-Powered-By: PHP/5.1.6
[4] => Set-Cookie: PHPSESSID=99912a257264875fee6798d0a08f3c65; path=/
[5] => Expires: Mon, 26 Jul 1997 05:00:00 GMT
[6] => Cache-Control: private, no-store, no-cache, must-revalidate
[7] => Pragma: no-cache
[8] => Last-Modified: Wed, 29 Nov 2006 15:35:29 GMT
[9] => Cache-Control: post-check=0, pre-check=0
[10] => Connection: close
[11] => Content-Type: text/html; charset=utf-8Code: Select all
print $headers[5]."\n".$headers[8];Code: Select all
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified: Wed, 29 Nov 2006 15:37:54 GMT