Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling images outside of the cgi-bin - Basic question 1

Status
Not open for further replies.

JennyW

Technical User
Joined
Mar 1, 2001
Messages
323
Location
CA
Hi again and again,

I have a very basic question.

I have a .cgi file, which is located in my cgi-bin.
This .cgi file generates [tt]html[/tt] and calls images from my so I use the following command to get the image:

../my_image.gif

This works great! But what would I do if I had several directories in my www directory?

For example, how would I adjust the command above if I had a directory named jennyw_menu within my www directory?


Thanks,
Jenny
 
You could use either "../jennyw_menu/image.gif" or you could use "$ENV{'DOCUMENT_ROOT'}/jennyw_menu/image.gif".
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Hi,

Thanks for your help ts!

Jenny
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top