Re: passing page URL to SSI script

2003-03-15 Thread Wiggins d'Anconia
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

RE: passing page URL to SSI script

2003-03-11 Thread Peter Kappus
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