[caracas-pm] Obtener IP
Ernesto Hernández-Novich
emhn at telcel.net.ve
Fri Apr 1 13:14:19 PST 2005
On Fri, 2005-04-01 at 12:04 +0200, Alexis Arnal wrote:
> my $ip=$ENV{'REMOTE_ADDR'};
Eso sólo funciona:
- Si el script es un CGI o corre dentro de mod_perl.
- Si el Apache del cual depende tiene activado el uso de variables de
ambiente standard.
--
Ernesto Hernández-Novich - On Linux 2.6.11 i686 - Unix: Live free or die!
Geek by nature, Linux by choice, Debian of course.
If you can't apt-get it, it isn't useful or doesn't exist.
GPG Key Fingerprint = 438C 49A2 A8C7 E7D7 1500 C507 96D6 A3D6 2F4C 85E3
More information about the caracas-pm
mailing list