|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
includes in higher level directories.
hi,
ive got the following folder structure on IIS Quote:
how would I call an include from an asp file that resides in: Quote:
to include a file that resides in: Quote:
I've tried so many different combinations of "./", "..", "\" Many thanks |
|
#2
|
||||
|
||||
|
have you tried
Code:
<!--#include file="/functions/admin/editPage.asp" --> |
|
#3
|
|||
|
|||
|
i actually meant the other way around
![]() Code:
<!--#include file="/connection/connection.asp" --> and yes I've tried that and I get the following: Quote:
|
|
#4
|
||||
|
||||
|
what about?
Code:
<!-- #include file ="connection\connection.asp" --> |
|
#5
|
|||
|
|||
|
nope
Quote:
|
|
#7
|
||||
|
||||
|
How about:
Code:
<!-- #include file="../../connection/connection.asp" --> |
|
#8
|
|||
|
|||
|
BINGO!
thanks mehere.. thanks for the links and ur time Memnoch, w3's got a good tutorial, although it didn't go as deep as I needed. |
|
#9
|
||||
|
||||
|
Did you try <!-- #include virtual="\" --> which works from the site pplication root?
|
|
#10
|
||||
|
||||
|
--moved to the IIS forum.
I think this option is disabled by default in IIS6.0 that's probably why it didn't work initially. but you can enable it via the IIS configuration. |
|
#11
|
|||
|
|||
|
Quote:
I like the / option. How do you enable it? Thanks shadow! |
|
#12
|
||||
|
||||
|
I'm not using it myself, but as far as I've seen it's here:
IIS Manager --> Right click your website --> Home Directory --> Application Setting - Configuration --> Options --> check "Enable parent path" checkbox. |
|
#13
|
|||
|
|||
|
Quote:
Thanks Shadow Wizard! I would click the scales but get the 'You must spread reputation around...' message. |
![]() |
| Viewing: ASP Free Forums > System Administration > Microsoft IIS > includes in higher level directories. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |