Lisa Elita wrote:
>
> Hi all,
>
> Can you tell me how to avoid cached HTML pages from showing up? How to set
> expiry time to an HTML page?
>
> Joseph
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi,
If I understood well, you want to set up an expire time for HTML page you create
using PHP. If so, you can use Header() function like this:
Header("Expires: ".gmdate("D, d M Y H:i:s")." GMT"); // please consult gmdate()
function for details
// or you can put the date you
want with the format shown
Header("Pragma: no-cache"); // for HTTP/1.0
Anyway, be sure you send headers before any other action send to the browser.
More detail about Header() function in PHP Manual --- HTTP Functions.
Please excuse me if you knew those things before you ask.
--
Adrian Turcu
System Administrator
Computers Department
Romanian Railway Company
Constanta Region
E-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]
Phone: +40 92 563791 (any time)
+40 43 363977 (home)
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]