Good morning.

Ken is correct  - I am not looking for random, I am looking for unique.

Unique and sequenced would be ideal, but it's tricky because if I use

$i++.$IP_address.$parameter.$PID
{$i is global, $IP_address is the server address, $parameter is a 
parameter that was just passed in, $PID is the apache process ID.}

That's a decent solution, but it's not quite sequential because one 
Apache process could handle far more many requests than another, and so 
a later request could have a lower $i.

Are there any code examples out there that use mod_unique_id.c ? I am 
new to mod_perl and couldn't quite get that. Looking at the code, it 
looks like mod_unique_id does basically the same thing but with a shared 
counter between the different servers.

Also what is the cheapest way to get a datestamp? (I'm assuming it's not 
`date %Y%M%D%H%S`)

--

I'm sorry to be such a noob, but when I've got a little more mod_perl 
under my belt I'll be answering questions up a storm!

David

Reply via email to