Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

Re: [PHP3] Refresh problem.. From: Barry Voeten (barry <email protected>)
Date: 07/09/98

Steven S. Boger wrote:
>
> First, my solution to an earlier problem of compiling PHP 3.0.1 &
> Apache. Never got it to work, ended up hacking the PHP 3.0 RPM and
> doing a build from the RPM....god, I love RPM's...
>
> Question - this may not even apply to PHP. I have weather page at work
> on the intranet. A cron job on the server goes out to the IntERnet and
> grabs a few jpegs every hour, then I have a local page reference the
> saved jpegs.....but, the images are getting cached - if someone leaves
> the sucker open for 8 hours, they get an eight hour old pic.

If the picture would have a different name, would it be loaded with a
meta refresh ?

barry

>
> I have tried these in a regular page, and in a PHP aided page:
>
> $adt = GMDate("D, d M Y H:i:s");
> Header("Content-type: text/html");
> Header("Last-Modified: $adt GMT");
> Header("Pragma: no-cache");
> Header("Cache-control: no-cache");
> Header("Expires: ".GMDate("D, d M Y H:i:s")." GMT");
>
> meta-refresh
>
> When I hit reload, the page is new, but the jpeg is a old-cached
> one....not even shift-reload helps.... The ONLY way I have found to get
> around this is a JAVA Applet that literaly loads the image itself, sits
> a awhile, wipes the image, and reloads it... This is not only annoying
> because it takes forever to load a JAVA applet, but with six of them on
> a page, you actually see a client-side performance hit.
>
> Is there anyway to simply have a meta-refresh in the head, and then have
> PHP do a load on the picture file? Or something?????
>
> -Steven
>
> --
> PHP 3 Mailing List http://www.php.net/
> To unsubscribe send an empty message to php3-unsubscribe <email protected>
> To subscribe to the digest list: php3-digest-subscribe <email protected>
> For help: php3-help <email protected> Archive: http://www.tryc.on.ca/php3.html

-- 
+++++++++++++++++++++++++++++++++++++++++
+  Barry Voeten barry <email protected> +
+  Netland Internet Services  Amsterdam + 
+  Web Engineering  Design  Hosting     +
+  www.netland.nl + 31 (0) 20 6943664   +

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive: http://www.tryc.on.ca/php3.html