Re: Unique ID on 5.0.4 (Windows)
| From: | David Robley | Date: | Thu, 22 Sep 2005 01:29:13 +0000 |
| Subject: | Re: Unique ID on 5.0.4 (Windows) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-222953@lists.php.net to get a copy of this message | ||
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
--
David Robley
Nothing is more relaxed than a sleeping cat.