I have myFunctions.asp in the root of folder. Several pages need to include this file. Some of the pages are in the root directory, some are in sub-directories two or three levels deep.
<!--#include file="myFunctions.asp"-->
and
<!--#include file="..\myFunctions.asp"-->
and
<!--#include file="..\..\myFunctions.asp"-->
all work. However, because some pages get moved around to other directories, the "..\" has to be updated.
Question: Is there some magical way of saying:
<!--#include file=currentwebsiteroot + "myFunctions.asp"-->
that could be put on every needed page regardless of the directory they are in?
<!--#include file="myFunctions.asp"-->
and
<!--#include file="..\myFunctions.asp"-->
and
<!--#include file="..\..\myFunctions.asp"-->
all work. However, because some pages get moved around to other directories, the "..\" has to be updated.
Question: Is there some magical way of saying:
<!--#include file=currentwebsiteroot + "myFunctions.asp"-->
that could be put on every needed page regardless of the directory they are in?