note 75195 added to function.uniqid
| From: | rjchallen at gmail dot com | Date: | Thu, 17 May 2007 15:08:05 +0000 |
| Subject: | note 75195 added to function.uniqid | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-126663@lists.php.net to get a copy of this message | ||
If you can guarantee a connection to mysql when you need your UUID then you can wrap up MySQL's
(v5+) function.
function uuid() {
return mysql_result(mysql_query('Select UUID()'),0);
}
----
Server IP: 194.145.210.3
Probable Submitter: 82.45.213.127
----
Manual Page -- http://www.php.net/manual/en/function.uniqid.php
Edit -- https://master.php.net/note/edit/75195
Del: integrated -- https://master.php.net/note/delete/75195/integrated
Del: useless -- https://master.php.net/note/delete/75195/useless
Del: bad code -- https://master.php.net/note/delete/75195/bad+code
Del: spam -- https://master.php.net/note/delete/75195/spam
Del: non-english -- https://master.php.net/note/delete/75195/non-english
Del: in docs -- https://master.php.net/note/delete/75195/in+docs
Del: other reasons-- https://master.php.net/note/delete/75195
Reject -- https://master.php.net/note/reject/75195
Search -- https://master.php.net/manage/user-notes.php