David Jacobs wrote: > > 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!
It looks like you didn't see my replies to your post. Please read them first. http://marc.theaimsgroup.com/?l=apache-modperl&m=102022922719057&w=2 http://marc.theaimsgroup.com/?l=apache-modperl&m=102023259920560&w=2 __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com