Re: (OT ?) issue with get_remote_host
[prev]
[thread]
[next]
[Date index for 2005/02/13]
Thank you. Again. (I seem to say that a lot)
I was googling for portions of the error string, and diving through
the pages of mod_perl cooking and practical_mod_perl -- i saw nothing.
Google actually had 4 entries, at most, for most portions of the error
string, which I found odd.
Anyways -- i'll post this to the list so others can google
Stas's insight + the migration tutorial showed me this:
under mod_perl 2
use Apache::Connection();
use Apache::Compat();
$r->get_remote_host();
or
use Apache::Connection();
$r->connection->get_remote_host();
On Feb 12, 2005, at 10:21 PM, Stas Bekman wrote:
>
> Jonathan:
>
> % lookup get_remote_host
> To use method 'get_remote_host' add:
> use Apache::Connection ();
>
> % alias lookup
> perl -MApache2 -MModPerl::MethodLookup -e print_method
>
> http://perl.apache.org/docs/2.0/api/ModPerl/
> MethodLookup.html#Command_Line_Lookups