note 93266 added to function.filemtime

From: Date: Mon, 31 Aug 2009 15:03:56 +0000
Subject: note 93266 added to function.filemtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-160086@lists.php.net to get a copy of this message
when working with swf files (flash animations), there is a nice way to avoid the browser cache. i used to do this by hand, then i used a random number, but with large animations while working online, it gets boring because the server always downloads the whole animation, even if there was no change. but... this will do the trick base.swf?rand=<?= filemtime("base.swf") ?> <embed src="base.swf?rand=<?= filemtime("base.swf") ?>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1680" height="1050"> ---- Server IP: 201.216.232.3 Probable Submitter: 186.18.212.47 ---- Manual Page -- http://www.php.net/manual/en/function.filemtime.php Edit -- https://master.php.net/note/edit/93266 Del: integrated -- https://master.php.net/note/delete/93266/integrated Del: useless -- https://master.php.net/note/delete/93266/useless Del: bad code -- https://master.php.net/note/delete/93266/bad+code Del: spam -- https://master.php.net/note/delete/93266/spam Del: non-english -- https://master.php.net/note/delete/93266/non-english Del: in docs -- https://master.php.net/note/delete/93266/in+docs Del: other reasons-- https://master.php.net/note/delete/93266 Reject -- https://master.php.net/note/reject/93266 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#160086) next »