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') . ' GMT');
                                                      // always modified
header ('Cache-Control: no-cache, must-revalidate');  // HTTP/1.1
header ('Pragma: no-cache');                          // HTTP/1.0

  PS: Got it from the manual, header(); function :-)
  Check the online comments if any problems happen, since there are many
various flavors of servers and clients...


Julio Nobrega

A hora está chegando:
"René fournier" <[EMAIL PROTECTED]> wrote in message
> Having successfully uploaded my PHP4+MySQL site finally to Fatcow (and the
> MySQL stuff IS there--thanks for the help), I'm now left with making it
> actually work online.  One curious problem:
> For every page in the site ("*.php4"), I include three parts, a
> (common to all), a (unique to each .php4 file), and a
> (common to all).  One of the things the file does is generate
> select a background image randomly.  Very simple, and it works on my local
> machine.  But as soon as I look at the page online, it seems Fatcow
> (Apache/Zend?)caches the file--that is, the results of the php
> script inside it, which generates the random background.  I say this
> no matter how many pages I look at, refreshing them, etc., I always get
> the same original background image.  Even if I replace now the random
> background image function in with the explicit name of a
> different file, it STILL displays the same one.  Weird?  Is there some way
> to ensure that each PHP4 file/script is interpreted every single time, and
> not cached (as it seems)??
> ...Rene

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to