Re: Re: Unique ID on 5.0.4 (Windows)

From: Date: Thu, 22 Sep 2005 05:20:06 +0000
Subject: Re: Re: Unique ID on 5.0.4 (Windows)
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-222970@lists.php.net to get a copy of this message
David Robley wrote:
Chris wrote:
Hi, Pretty soon I'm going to be needing to generate a unique identifier in a script. I'm looking into how to go about doing it now. It has to work on Apache 2 / PHP 5.0.4 (Module) / Windows 2000 Server. Any suggestions on how I might be able to do it? I've noticed the uuid PECL package, which looks like it could work for me, but I'm not sure it will work on Windows, or where to get it if it did. I have access to Visual Studio 6, so I think I could compile it if I had to. Anyone have experience compiling PECL extensions on Windows? I'd appreciate any help you could give me. Thanks, Chris
Have you looked at uniqid() ? http://php.net/uniqid Cheers Truthfully, I forgot about that option. But I don't think it will work for me.
If two requests generate and ID at the same microsecond then the ID will duplicate, and that will not work for me. I understand there is some slight chance it would duplicate with UUID, but much less of one than uniqid() Thanks, I appreciate it Chris

« previous php.general (#222970) next »