Solved

Use of relative path..

Posted on 1998-10-22
4
193 Views
Last Modified: 2013-12-25
This is probably a FAQ, but anyway...
I have written a ISAPI DLL which is placed in the cgi-bin directory of my web. When I'm creating links from my ISAPI that points to the DLL, I would like to use "relative-to-root"/cgi-bin.
I thought that ../ did just that, but it just seems to go 1 step back, it that right? If yes, can I use "relative-to-root"?
0
Comment
Question by:BlackMan
  • 2
  • 2
4 Comments
 
LVL 28

Accepted Solution

by:
sybe earned 50 total points
ID: 1829241
links that start with "/", will start from the root of the server. "../" steps one directory higher.
0
 
LVL 7

Author Comment

by:BlackMan
ID: 1829242
It seems like when I use / it is appended to the current directory, which in my case is the cgi-bin directory...
Or am I completely wrong?
0
 
LVL 28

Expert Comment

by:sybe
ID: 1829243
absolute links
==============
<a href="/">text</a>
points to the root of the webserver

<a href="/cgi-bin/">text</a>
points to the cgi-bin directory

both count from every page on that server.
=

relative links
=============
<a href="myfile.htm">text</a>
points to a file in the current directory

<a href="../myfile.htm">text</a>
points to a file in the directory one level higher then the current directory.

0
 
LVL 7

Author Comment

by:BlackMan
ID: 1829244
Ok, thanks..
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Ever wondered how to display how many visitors you have online. In this tutorial I will show you an easy but effective way to display the number of online visitors in WhizBase. In this article I assume you have read my previous articles and know …
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

746 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now