CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 PERL: unabel to get client browser IP

Print topic Send  topic

Author Message
Fabian.
Posted: 10/11/2002, 4:36 PM

Please,

Any gentle soul could tell me wich is the PERL function to use and get the browser IP ?

many thanks !

F.
feha
Posted: 10/11/2002, 5:00 PM

$ip = $ENV{'REMOTE_ADDR'};
$browser = $ENV{'HTTP_USER_AGENT'};
@digits = split (/\./, $ip);
$address = pack ("C4", @digits);
$host = gethostbyaddr ($address, 2);


regards
feha
www.vision.to
Fabian. 
Posted: 10/11/2002, 5:42 PM

Cheers,

many thanks indeed.

F.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.