Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using virtual include in subdir.

Status
Not open for further replies.

RoKKos

Programmer
Feb 3, 2003
50
SE
Hi.

Am doing som changes to a website and I do not have IIS on my computer so I am using a third party webhost as the temp testserver and now the problem.

The website I'm working on is originaly located in rootcatalog and at my webhost it is located in a subdir. The includes are viritual and refer to the root. Is there any way I can set some sort of varible to define the subdir as the rootdir for all files in that subdir or do I have to change all the includes or try to get my webhost to do something.
 
This won't help your immediate problem but ...

If you have to move hosts very often then maybe consider putting the root into an Application variable and setting it in global.asa like this;

Sub Application_OnStart
Application("myRoot") = "whatever"
End Sub

Then when ever you need it you just use the Application variable.

Also I think you can get the app root from map.path but you still need to edit scripts to get it in.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top