|
From: Wizard <wi...@ne...> - 2002-02-13 00:39:20
|
> , nope, the
> DOCUMENT_URI still doesn't show up.
I think it should be "REQUEST_URI", not "DOCUMENT_URI". Although both work
on Apache, only the "REQUEST_URI" is a documented SSI variable.
"REQUEST_URI" is also the same as "SCRIPT_NAME" when called from CGI script,
but I don't think it is passed in SSI.
Grant M.
Apache comes with 'printenv' (included below), you can run that to see all
of the accepted CGI variables, but just delete it when you're done.
============================================
#!/usr/bin/perl
##
## printenv -- demo CGI program which just prints its environment
##
print "Content-type: text/plain\n\n";
foreach $var (sort(keys(%ENV))) {
$val = $ENV{$var};
$val =~ s|\n|\\n|g;
$val =~ s|"|\\"|g;
print "${var}=\"${val}\"\n";
}
|