this list
this category
Advanced
Mailing List Archive
Login
Register
Help
Mailing List Archive
GT.net
GT.net
Login
Register
Help
this list
this category
Advanced
Mailing List Archive
Home
>
ModPerl
>
ModPerl
fetch IP.
jleach at mail
Feb 17, 2000, 9:32 AM
Post #1 of 3
(1640 views)
Permalink
hi,
I'm also looking to fetch a visitor's IP just as apache does in it's log.
Can this be done with mod_perl?
j.
RE: fetch IP. [
In reply to
]
cholet at logilune
Feb 17, 2000, 9:41 AM
Post #2 of 3
(1592 views)
Permalink
> hi,
>
> I'm also looking to fetch a visitor's IP just as apache does in it's log.
> Can this be done with mod_perl?
$r->connection->remote_ip
or $ENV{REMOTE_ADDR} if you're looking for CGI compatibility.
--
Eric
Re: fetch IP. [
In reply to
]
darren at boston
Feb 17, 2000, 4:50 PM
Post #3 of 3
(1600 views)
Permalink
my $ip_addr = $r->connection->remote_ip;
Jason C. Leach (jleach@mail.ocis.net) wrote:
> hi,
>
> I'm also looking to fetch a visitor's IP just as apache does in it's log.
> Can this be done with mod_perl?
>
> j.
--
Cole's Law: Thinly sliced cabbage.