Re: Graphics question

From: Date: Fri, 08 Nov 2002 06:51:12 +0000
Subject: Re: Graphics question
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-123323@lists.php.net to get a copy of this message
> Jeez, this is simple. The browser is caching the image. There's no real > way to fix that. There are some headers that may encourage the browser to > not cache, but there is no sure way to control whether the users will have > this setting overridden. I use.... srand((double)microtime()*1000000); $anticache= md5(rand(0,9999999)); and then echo "<IMG src=\"drawpic.php?arg1=blah&arg2=blah&.....&anticache=$anticache\" .... >\n"; Since this addition, i have never had a problem with cache, HTH Todd.

« previous php.general (#123323) next »