I was wondering if retrieving the remote host depends on your server?
In a PHP script, it can retrieve the REMOTE_HOST easily, but when I write this following perl script to see all the environmental variables my shared host can grab, it SKIPS the REMOTE_HOST value.
#!/usr/local/bin/perl -T
use strict;
print "Content-type: text/html\n\n";
print "<tt>\n";
foreach my $key (sort keys(%ENV)) {
print "$key = $ENV{$key}<p>";
}
print $ENV{'REMOTE_HOST'}; #prints BLANK for me?!
print "<br>hi";
Is it something to do with my code or the server settings? If server settings, how can I work around this if my host does not cooperate?
Thank you monks.