[PHP] caching and IE 5

2001-08-09 Thread Karl Phillipson

Is anyone else having fun and games with IE 5.0 and caching?

I have the no-cache code (below) before anything else in my index file. 
Following that an include file is pulled in that has a form with a text
input field that echos the date and time.

Whenever I refresh the page the time does not update to reflect the current
time, it sticks with the time that was displayed when the page was first
loaded.
Even when I close the browser and reopen it the time remains the same. Any
pointers on this issue?

?php
header (Expires: Mon, 14 Jul 1963 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: no-cache, must-revalidate);  // HTTP/1.1
header (Pragma: no-cache);
?


input type=text name=search_name value=?php echo SEARCH
.date(F jS Y G:m A) ?

Thx in advance.

Karl





Re: [PHP] caching and IE 5

2001-08-09 Thread Daniel James

On Thu, 9 Aug 2001, Karl Phillipson wrote:

 Is anyone else having fun and games with IE 5.0 and caching?
 
 I have the no-cache code (below) before anything else in my index file. 
 Following that an include file is pulled in that has a form with a text
 input field that echos the date and time.
 
 Whenever I refresh the page the time does not update to reflect the current
 time, it sticks with the time that was displayed when the page was first
 loaded.
 Even when I close the browser and reopen it the time remains the same. Any
 pointers on this issue?
 
 ?php
 header (Expires: Mon, 14 Jul 1963 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: no-cache, must-revalidate);  // HTTP/1.1
 header (Pragma: no-cache);
 ?
 
 
   input type=text name=search_name value=?php echo SEARCH
 .date(F jS Y G:m A) ?
 
 Thx in advance.
 
 Karl
 

I do something messy when nothing else works... get ready for it hehe

a href=?=$PHP_SELF??iesux=?=rand(10,20)?Click here to refresh/a

Told you it was ugly.

Twigman...


-- 
PHP General 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]




RE: [PHP] caching and IE 5

2001-08-09 Thread Lawrence . Sheed

Try this

head
META Http-Equiv=Cache-Control Content=no-cache
META Http-Equiv=Pragma Content=no-cache
META Http-Equiv=Expires Content=0 
/head

works for me  - try loading www.shanghaiguide.com/main/index.php3 - should
do time, and display a different image every time.

cheers,

lawrence.
-Original Message-
From: Karl Phillipson [mailto:[EMAIL PROTECTED]]
Sent: August 9, 2001 5:21 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] caching and IE 5


Is anyone else having fun and games with IE 5.0 and caching?

I have the no-cache code (below) before anything else in my index file. 
Following that an include file is pulled in that has a form with a text
input field that echos the date and time.

Whenever I refresh the page the time does not update to reflect the current
time, it sticks with the time that was displayed when the page was first
loaded.
Even when I close the browser and reopen it the time remains the same. Any
pointers on this issue?

?php
header (Expires: Mon, 14 Jul 1963 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: no-cache, must-revalidate);  // HTTP/1.1
header (Pragma: no-cache);
?


input type=text name=search_name value=?php echo SEARCH
.date(F jS Y G:m A) ?

Thx in advance.

Karl



-- 
PHP General 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]




RE: [PHP] caching and IE 5

2001-08-09 Thread Karl Phillipson

Hmmm, I substituted the date(F jS Y G:m A) function for a time() function
and this works fine, on refresh the updated timestamp is visible. 

(btw system is apache 1.20 running on Hed Rat 7.1 - php 4.05)

Can anyone explain why the time() function refreshes and returns the correct
value but the date(F jS Y G:m A) does not??

Seems the problem might not be an IE5 caching issue at all ??

Regs,

Karl



==
Karl Phillipson
PHP SQL Programmer

Saffron Hill Ventures
67 Clerkenwell Road
London   
EC1R 5BL

Saffron Hill: 0207 693 8300
Direct Line: 0207 693 8318


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: 09 August 2001 10:37
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] caching and IE 5


Try this

head
META Http-Equiv=Cache-Control Content=no-cache
META Http-Equiv=Pragma Content=no-cache
META Http-Equiv=Expires Content=0 
/head

works for me  - try loading www.shanghaiguide.com/main/index.php3 - should
do time, and display a different image every time.

cheers,

lawrence.
-Original Message-
From: Karl Phillipson [mailto:[EMAIL PROTECTED]]
Sent: August 9, 2001 5:21 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] caching and IE 5


Is anyone else having fun and games with IE 5.0 and caching?

I have the no-cache code (below) before anything else in my index file. 
Following that an include file is pulled in that has a form with a text
input field that echos the date and time.

Whenever I refresh the page the time does not update to reflect the current
time, it sticks with the time that was displayed when the page was first
loaded.
Even when I close the browser and reopen it the time remains the same. Any
pointers on this issue?

?php
header (Expires: Mon, 14 Jul 1963 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: no-cache, must-revalidate);  // HTTP/1.1
header (Pragma: no-cache);
?


input type=text name=search_name value=?php echo SEARCH
.date(F jS Y G:m A) ?

Thx in advance.

Karl



-- 
PHP General 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]