--- Ahmed Moustafa <[EMAIL PROTECTED]> wrote: > Hi All, > > In a CGI Perl script, how can I get the physical, geographical, location > of an IP address and the HTTP Referer? > > Thanks a lot for your attention. Your help will be appreciated. > > Ahmed
Ahmed, To get the longitude and latitude of an IP address, check out http://www.perlmonks.org/index.pl?node_id=136438. Of course, there's no guarantee of the accuracy of this. To get the IP address of a host, see 'perldoc Socket'. Cheers, Curtis "Ovid" Poe ===== "Ovid" on http://www.perlmonks.org/ Someone asked me how to count to 10 in Perl: push@A,$_ for reverse q.e...q.n.;for(@A){$_=unpack(q|c|,$_);@a=split//; shift@a;shift@a if $a[$[]eq$[;$_=join q||,@a};print $_,$/for reverse @A __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]