Link to home
Start Free TrialLog in
Avatar of Arachn1d
Arachn1d

asked on

Include ASP file in parent directory

Is there any way to include a file in a parent directory, or another sub-directory of a common parent? #INCLUDE doesn't support it - does anything else?
ASKER CERTIFIED SOLUTION
Avatar of mberumen
mberumen

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Arachn1d
Arachn1d

ASKER

Odd, because the docs say it doesn't support it. Hmm, will test. Thx.
The comment from Mberumen is correct. What it doesn't support is starting the path with the slash character "/". But relative pathing is accepted.
Ok, thanks.
Wait just a moment! If that's the case, why do I get this error:

Active Server Pages error 'ASP 0126'

Include file not found

/WeBBS/admin/index.asp, line 1

The include file '../includes/top.asp' was not found

The file ../includes/top.asp DOES exist! Why won't it load it then?
Oops, my sincere apologies. I was using include VIRTUAL :-/