in reply to list of all the $env variables
Put it in your cgi-bin (if it's not already there, I think it comes default with apache). Be sure it is executable by the user the webserver runs as. Otherwise google for an active env.pl on somebody elses webserver.#!/bin/perl print "Content-type: text/html\n\n"; print "<HTML>\n"; print "<TITLE>Server-provided Environment variables</TITLE>"; print "<BODY>\n"; print "<TABLE>\n"; print "<TR><TD colspan=2 align=center>Environment Variables</TD></TR>\ +n"; foreach my $x (keys %ENV) { print "<TR><TD>$x</TD><TD>$ENV{$x}</TD></TR>\n"; } print "</TABLE></BODY></HTML>\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Re: list of all the $env variables
by merlyn (Sage) on May 08, 2004 at 20:12 UTC | |
by eXile (Priest) on May 08, 2004 at 20:23 UTC | |
by defyance (Curate) on May 08, 2004 at 21:34 UTC | |
by Juerd (Abbot) on May 08, 2004 at 22:33 UTC | |
by davido (Cardinal) on May 09, 2004 at 03:40 UTC |