Hey all, I'm working on a new script to get a user's IP address. However, I'm getting errors with the following and I'm not sure why:
CODE:
#! /usr/bin/perl -wT
$remote_ip = $ENV[REMOTE_ADDR];
print $remote_ip;
ERRORS:
Premature end of script headers: findIP.cgi
Argument "REMOTE_ADDR" isn't numeric in array element at ...findIP.cgi line 3.
Use of uninitialized value in print at ...findIP.cgi line 5.
Matt Torbin
Web and Graphic Arts Engineer
PEI-Genesis
aim: dgtlby
direct email: mtorbin_at_earthlink.net
CODE:
#! /usr/bin/perl -wT
$remote_ip = $ENV[REMOTE_ADDR];
print $remote_ip;
ERRORS:
Premature end of script headers: findIP.cgi
Argument "REMOTE_ADDR" isn't numeric in array element at ...findIP.cgi line 3.
Use of uninitialized value in print at ...findIP.cgi line 5.
Matt Torbin
Web and Graphic Arts Engineer
PEI-Genesis
aim: dgtlby
direct email: mtorbin_at_earthlink.net