On Mon, 2002-02-18 at 13:14, Steven Walker wrote:
> Is it safe to use time() to generate a unique id number?
> My thinking is that the call to the server will take enough time that no
> two users will get the same time stamp (although they may be very
> close). Even though the likelyhood of two users entering at the same
> time is very slim, I don't want to take the chance.
> What about microtime()?
No, time functions suck for this. See uniqid() for this kind of thing:
> Steven J. Walker
> Walker Effects
> [EMAIL PROTECTED]
Torben Wilson <[EMAIL PROTECTED]>
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php