[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] OT: Script to show the IP of a visitor.
- Subject: RE: [cobalt-users] OT: Script to show the IP of a visitor.
- From: "Paul Alcock" <webmgr@xxxxxxxxxxxxxxxxxx>
- Date: Mon Dec 18 13:15:03 2000
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Try this script, it should help a lot.
> > Sorry for this OT, but I'm looking for a script or CGI to let a
> user show
....Cut here>
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<html><body>";
print "Ok, here's the list of environment variables.<br>";
while (($key, $value) = (each %ENV)) {
print "$key: $value<br>";
}
print "</body></html>";
<...stop here
If you name it something like 'test-env.cgi'
Upload it in ascii
chmod it to 755
Then run it from a browser.
http://mysite.com/test-env.cgi
That should do it.
Paul.
webmgr@xxxxxxxxxxxxxxxxxx