Reputation: 801
how to use absolute paths with classic asp? at the moment the whole application has the following includes of files:
<!--#include file="../../../../../something.asp"-->
It doesn't work if I do a absolute call to the asp file like:
<!--#include file="/root/foobar/something.asp"-->
Someone knows a trick to let it work?
Upvotes: 4
Views: 3718
Reputation: 2841
Use virtual paths, which are based off the website root:
<!--#include virtual="/something.asp"-->
Upvotes: 2
Reputation: 783
The first example will work if the site settings are changed in IIS to "Allow parent paths".
The second sample is not acceptible, at least not on Windows servers.
Upvotes: 0