note 38107 added to function.rand
| From: | jbarbero at u dot washington dot edu | Date: | Mon, 08 Dec 2003 18:14:41 +0000 |
| Subject: | note 38107 added to function.rand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-61655@lists.php.net to get a copy of this message | ||
to jordan at do not spam .com:
The image no-cache function is simpler if you just do:
<?
$junk = md5(time());
?>
Usage would be: <img src="image.gif?<?=$junk?>">
md5(time()) is more guaranteed to be unique, and it is faster than two md5 calls.
----
Manual Page -- http://www.php.net/manual/en/function.rand.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38107
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38107&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38107&report=yes
Search -- http://master.php.net/manage/user-notes.php