Solved

Use of relative path..

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
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 the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…

770 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