Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Use of relative path..

Posted on 1998-10-22
4
Medium Priority
?
217 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 200 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
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 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 …

705 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