note 21717 added to function.time

From: Date: Fri, 24 May 2002 04:05:16 +0000
Subject: note 21717 added to function.time
Groups: php.notes 
Request: Send a blank email to php-notes+get-30968@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+21717 http://master.php.net/manage/user-notes.php?action=delete+21717 http://master.php.net/manage/user-notes.php?action=reject+21717

« previous php.notes (#30968) next »