in reply to method of ID'ing

One thing not mentioned yet is that the amount of "uniqueness" contained in $$ drops significantly when you scale beyond a single webserver. If you have a group of load balanced webservers, you no longer have to roll-the-pid to get duplicate values of $$.

Even if your whole project is running on a single machine today, a simple timestamp+pid identifier hampers the long term scalability of your site.

-Blake

Replies are listed 'Best First'.
Re: Re: method of ID'ing
by Juerd (Abbot) on Apr 14, 2002 at 13:14 UTC

    webserver.

    If you're using Apache and have mod_unique_id, you can use $ENV{UNIQUE_ID}, which I like a lot.

    The link above links to the module documentation, a page that also has detailed information about IDing techniques.

    - Yes, I reinvent wheels.
    - Spam: Visit eurotraQ.