You are here: Re: Server Unique Identifier Question « PHP Programming Language « IT news, forums, messages
Re: Server Unique Identifier Question

Posted by noone on 02/05/06 20:40

David T. Ashley wrote:
> Hi Guys,
>
> In my application I need a way to generate an identifier that is guaranteed
> to never recur in the lifetime of the server. The method I'm using now is
> to concatentate:
>
> a)Integer time, in seconds,
>
> b)Micro time, in microseconds, and
>
> c)PID
>
> into one string, then to spin-lock or micro_sleep() until the micro_time
> changes.
>
> My assumption is that this identifier will be unique because no two
> processes can have the same PID at the same time.
>
> Is there a better way?
>
> Thanks, Dave.
>
> P.S.--Application: Linux, Apache, PHP, MySQL, web database stuff.
>
>
>


Just curious, but why not use $_SERVER['UNIQUE_ID']?

M.

 

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

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