XACT SAME pages on Fatcow (Linux/Apache, I believe,
> > PHP4...), the randbg() function executes the first time, then
> > [seemingly] fails to execute again--it never generates a different,
> > random bakground. (Or maybe I'm looking at one hell of a
> > coincidence :-)
e :-)
>
> So my question is, who is caching what, where?
>
> ...Rene
>
> > -Original Message-
> > From: Tamas Arpad [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 31, 2001 7:24 AM
> > To: René Fournier; Hugh Danaher
> > Cc: Php-General
> &g
001 7:24 AM
> To: René Fournier; Hugh Danaher
> Cc: Php-General
> Subject: Re: [PHP] Re: Weird caching problem with PHP4/Apache
>
>
> On Wednesday 31 October 2001 14:48, René Fournier wrote:
> > Nope, unfortunately, nothing. It's a really weird problem. It's
On Wednesday 31 October 2001 14:48, René Fournier wrote:
> Nope, unfortunately, nothing. It's a really weird problem. It's
> like the PHP function I wrote for generating the random image will
> only work the first time.
I think it is not php that caches it. As I undertsand you wrote a
script th
2001 10:59 PM
> To: René Fournier
> Subject: Re: [PHP] Re: Weird caching problem with PHP4/Apache
>
>
> I have the same problem with a .jpg image. Everything on the
> page refreshes
> but the image. All the tags I've tried failed too. Anyone give
> you anything
> u
Thanks for the help, but I'm afraid it hasn't solved the caching problem, at
least not with respect to the PHP random function... It's not as if the
entire page get's cached, since there is an SQL query that selects a random
row from a table--and that is random. But the PHP part of it--that is,
These lines will do what you asked, but I am unsure if they will resolve
your problem (since I don't know Fatcow and how they configured the server).
Anyway, here it is:
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
7 matches
Mail list logo