note 33938 added to function.uniqid
| From: | Warhog at rack1 dot php dot net | Date: | Fri, 11 Jul 2003 14:57:46 +0000 |
| Subject: | note 33938 added to function.uniqid | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-51913@lists.php.net to get a copy of this message | ||
I think another nice way to get an unique id is simply to calculate the md5 hast of the current
microtime or time
md5(microtime()) / md5(time())
----
Manual Page -- http://www.php.net/manual/en/function.uniqid.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33938
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33938&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33938&report=yes