Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

SSI for common navigation

Posted on 2000-03-05
6
210 Views
Last Modified: 2010-03-05
I have a SSI that includes a cgi that prints out a common navigation bar to all pages.  I wanted to add a little graphic that will display what section the SSI is being called from, but how can I tell?  There is no ENV variable for the calling page... of course SCRIPT_NAME displays the name of the cgi and not the SHTML page that included it.  Any way for me to tell within this CGI which page is calling it?
0
Comment
Question by:georgia
6 Comments
 
LVL 2

Expert Comment

by:sanek
ID: 2585971
Hmm... what does $ENV{'HTTP_REFERER'} variable equal to?
0
 

Author Comment

by:georgia
ID: 2586002
It is blank....  I assume it would refer to the page that I came from and not the one that called the script because it is blank when I just use the URL.
0
 

Accepted Solution

by:
powerlord earned 50 total points
ID: 2586297
How about $ENV{'REQUEST_URI '} ?
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 2

Expert Comment

by:sanek
ID: 2587003
Wierd...
I see at SCRIPT_FILENAME calling page and not CGI address. How do you execute CGI
with <!--#exec cgi=...--> or <!--#include virtual=...-->
Try to use include, it's better
0
 
LVL 3

Expert Comment

by:guadalupe
ID: 2587421
This is a total workaround but what about passing the argument to the script.  Ex:

script.pl?caller=callinmg_page.htm

Then you just print out the variable $caller.

It's not the greatest but if your $ENV variables truly can't help...
0
 

Author Comment

by:georgia
ID: 2588048
That got it!  Thanks!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question