Solved

Use of relative path..

Posted on 1998-10-22
4
195 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

929 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

15 Experts available now in Live!

Get 1:1 Help Now