note 15692 deleted from function.uniqid by jimw

From: Date: Thu, 20 Dec 2001 20:07:29 +0000
Subject: note 15692 deleted from function.uniqid by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23382@lists.php.net to get a copy of this message
A good four-liner that uses web surfers IP address to create a unique id. md5'ed to add extra length. <? $ip = $REMOTE_ADDR; $randstr = uniqid($ip,1); $randstr = eregi_replace("$ip","","$randstr"); $randstr = md5($randstr); ?>

« previous php.notes (#23382) next »