You are here: Re: [PHP] Re: Unique ID on 5.0.4 (Windows) « PHP « IT news, forums, messages
Re: [PHP] Re: Unique ID on 5.0.4 (Windows)

Posted by Chris on 10/12/06 11:27

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация