Howto get the current file path with SSI

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Eranga Udesh (eranga_at_omnibis.com)
Date: 04/05/04


Date: Mon, 5 Apr 2004 09:06:27 +0600

Hi All,

In my ASP file, located at the "/test" directory of the website, I include
another ASP file as below.

<!--#include file="../templates/_header.asp"-->

Inside the _header.asp file, how can I get the current file (_header.asp)
directory? I need to get the web relative/absolute directory of _header.asp,
but instead even if I can get the physical directory location of that file
should be fine.

I tried Request.ServerVariables("") with almost all the variables, but none
gave me what I wanted. This is necessory, becase the location of _header.asp
and the file which includes that can vary.

Please give me a help/clue as soon as possible.

Thanks in advance!
Eranga



Relevant Pages

  • Howto get the current file path with SSI
    ... In my ASP file, located at the "/test" directory of the website, I include ... but instead even if I can get the physical directory location of that file ... Please give me a help/clue as soon as possible. ...
    (microsoft.public.inetserver.asp.components)
  • Howto get the current file path with SSI
    ... In my ASP file, located at the "/test" directory of the website, I include ... but instead even if I can get the physical directory location of that file ... Please give me a help/clue as soon as possible. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Howto get the current file path with SSI
    ... In my ASP file, located at the "/test" directory of the website, I include ... but instead even if I can get the physical directory location of that file ... Please give me a help/clue as soon as possible. ...
    (microsoft.public.inetserver.asp.general)
  • Permission denied
    ... BlankI wanted to place a prompt into an ASP file on my website below ... http://www.w3schools.com/vbscript/func_inputbox.asp) into an ASP file. ... Microsoft VBScript runtime error '800a0046' ... [Microsoft MVP - FrontPage] ...
    (microsoft.public.scripting.vbscript)