note 20530 added to function.time

From: Date: Sat, 06 Apr 2002 21:55:53 +0000
Subject: note 20530 added to function.time
Groups: php.notes 
Request: Send a blank email to php-notes+get-28791@lists.php.net to get a copy of this message
This may seem like overkill, but I have used a combination of the time() and md5() functions to great success when trying to completely prevent caching of pages and not just display the timestamp. $cachekiller = md5(time()); then include as a hidden variable in forms or just append to the end of a url ?cachekiller=" . $cachekiller . " in the case of images, specifically banners, include in the following way <img src="imagedisplay.php/" . $cachekiller . "/.gif"> -- http://www.php.net/manual/en/function.time.php http://master.php.net/manage/user-notes.php?action=edit+20530 http://master.php.net/manage/user-notes.php?action=delete+20530 http://master.php.net/manage/user-notes.php?action=reject+20530

« previous php.notes (#28791) next »