note 75740 deleted from function.uniqid by googleguy
| From: | googleguy@php.net | Date: | Mon, 11 Feb 2013 05:11:10 +0000 |
| Subject: | note 75740 deleted from function.uniqid by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-193575@lists.php.net to get a copy of this message | ||
Note Submitter: dot dot dot dot dot alexander at gmail dot com
----
I use this mangle currently:
( inserts the IP, uses time() and a prefix, aside the uniqid)
<?php
if(!function_exists("newid")){
function newid($prefix = "user_"){
return ($prefix . uniqid( hash("md5", time()), TRUE ) . time() .
@$_SERVER['REMOTE_ADDR']);
}/* endfunction */
}/* endif */
?>