note 93266 modified in function.filemtime by thiago
| From: | thiago@php.net | Date: | Mon, 31 Aug 2009 15:06:17 +0000 |
| Subject: | note 93266 modified in function.filemtime by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-160087@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=<?php echo filemtime("base.swf") ?>
<embed src="base.swf?rand=<?php echo filemtime("base.swf") ?>"
quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="1680" height="1050">
--was--
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">
http://php.net/manual/en/function.filemtime.php