[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] OT: Script to show the IP of a visitor.



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