javamaster wrote:
I am including the same CGI script as an SSI on several web pages. I
need to know which page the script was run from (something like the
javascript window.location variable). I want to be able to know if the
script was executed from index.html, or contact.html, or products.ht
If you're using Apache, you can read from the magical environment hash to
see what URL the script was called from.
try this: $ENV{'REQUEST_URI'};
or print them all like so:
print $_ . " " .$ENV{$_} . "" for(keys(%ENV));
I'm not sure how this behaves with other servers such as IIS, but it's
prob