Forum Moderators: phranque
Name it something like envars.cgi, upload it to your cgi executable directory, set the permissions to executable (755,) and be sure to remove it from your server when you're done - you don't want someone stumbling on it and getting information about your server environment.
#!/usr/bin/perl
print "content-type:text/html\n\n";
foreach $varname (sort keys %ENV) {
print "$varname $ENV{$varname}<br>\n";
}