I had a similar problem and I just put this in front of my php so everytime
my scripts are called they always tell the browser and any proxy servers not
to cache anything from me.
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-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
----- Original Message -----
From: "Donahue Ben" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 09, 2002 1:00 PM
Subject: [PHP] Image problem
> I upload an image. Once I upload this image using the
> is_uploaded_file function, then writing this image
> file using the copy function. Everything seems to
> work fine. When i try to update (that is uploading a
> new file and saving it with the same name as the first
> file created) it shows the first image instead of the
> second image. So what I did was closed my browser,
> then reopened it, then everything was ok. So I figure
> that I have a cache problem. I then tried using the
> clearstatcache() function right after I update this
> image file. But it did not seem to work. So am I
> going to have to close and reopen my browser to see
> these changes take place or is there something else I
> can do?
>
> Ben
>
> __________________________________________________
> Do you Yahoo!?
> Faith Hill - Exclusive Performances, Videos & More
> http://faith.yahoo.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php