Solved

Use of relative path..

Posted on 1998-10-22
4
213 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
[X]
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
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Question has a verified solution.

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

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
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 if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

623 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