![]() |
|
|
#1 (permalink) |
|
Registered User
Join Date: Feb 2006
Posts: 13
|
Include files in sub directories
The files on my site that sit within a sub directory of the wwwroot folder and reference an include file stored within a directory up from itself e.g.
wwwroot/mysub/file.asp - file that references include wwwroot/scripts/include.asp - include file produces this error message: Active Server Pages error 'ASP 0131' Disallowed Parent Path /mysub/file.asp, line 3 The Include file '../scripts/include.asp' cannot contain '..' to indicate the parent directory. My include code is: <!--#include file="../scripts/include.asp" --> How do I reference the files? |
|
|
|
|
|
#2 (permalink) |
|
Administrator
Join Date: May 2003
Posts: 1,299
|
Hi,
You will need to enable parent paths, you can do this by going to your domain in helm and clicking on website settings and then ticking the Parent Paths box and clicking save. Regards, Jacob
__________________
Jacob Colton jacob@catalyst2.com Open a ticket | Knowledgebase | Rate catalyst2 | Review catalyst2 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|