Re: Netscape caching problem
| From: | Ernest E Vogelsinger | Date: | Mon, 22 Jan 2001 18:19:23 +0000 |
| Subject: | Re: Netscape caching problem | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-36045@lists.php.net to get a copy of this message | ||
At 19:14 22.01.2001, Larry Jaques said:
--------------------[snip]--------------------
>I used this, the sample from "Core PHP Programming" and it gives me a parse
>error
>starting on the first line of the change whether the header lines are
>before or after
>session_start or the session_ register lines.
>
>header("Last-Modified: " . gmdate("D, d M Y H:i:s) . " GMT");
>header("Expires: " . gmdate("D, d M Y H:i:s) . " GMT");
>header("Cache-Control: no-cache, must re-validate");
>header("Pragma: no-cache");
--------------------[snip]--------------------
You're missing a double quote at the gmdate phrase. Use
header("Expires: " . gmdate("D, d M Y H:i:s") . " GMT");
...ebird
>O Ernest E. Vogelsinger
(\) http://www.1-at-web.at/
^ ICQ# 13394035