catalyst2 community forums  

Go Back   catalyst2 community forums > Support > Scripting Support

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 03-02-2006, 08:30 AM   #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?
orandaWeb is offline   Reply With Quote
Old 03-02-2006, 08:34 AM   #2 (permalink)
Administrator
 
Jacob's Avatar
 
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 is offline   Reply With Quote
Old 03-02-2006, 08:36 AM   #3 (permalink)
Registered User
 
Join Date: Feb 2006
Posts: 13
Thanks for the quick reply.

I have changed the include to a virtual path which has done the trick.
orandaWeb is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 11:44 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.