Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Include File Statements 1

Status
Not open for further replies.

vpekulas

Programmer
Jan 8, 2002
154
CA
Hello All,

I have a question, which you might be able to help me with :)

I have an ASP application that gets installed on many servers, some of them Win 2003 some Win 2000 some NT4.
As you probably know on Windows 2003 you can no longer use:

<!--#include file="../../file.asp"-->

but rather you have to use:

<!--#include virtual="/folder/file.asp"-->


Because I don't know the name of the folder where the application will be installed, is there a way to generate
the path automatically in this statement ?

<!--#include virtual="/root/folder/file.asp"-->

I honestly don't know what to do anymore :(

&quot;Taxes are the fees we pay for civilized society&quot; G.W.
 
Errr...i think you can still use parent paths, it's just default set to Off in 2003 and XP rather than On (like 2000). Check your IIS settings in the Internet Services Manager snap-in from Administrative Tools.

Rt click on web server, select properties, click home directory tab, select Configuration button in App Settings box, Click app options tab in popped up window, Click the "Enable Parent Paths" option. Hit Ok a few tims to get back and you should be good to go (pretty sure it doesn't even need a restart of web server).

-T

01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
The never-completed website:
 
Yep Tarwn's right. 2003 has it off by default.

________
George, M
Searches(faq333-4906),Carts(faq333-4911)
 
Thanks guys, but that doesn't really help. I have to deal with hosts, not intranets and localserver, so I don't have access to this settings :(
Any other thought ? (Please)

&quot;Taxes are the fees we pay for civilized society&quot; G.W.
 
You have to ask your admin to set that on. I'm guessing that he doesnt even knw as it hapened to me a while ago. ISP should make shure that your application will work on the new server since that worked on the old system. Should be theyr problem to fix that especially when you knw what the problem is.

________
George, M
Searches(faq333-4906),Carts(faq333-4911)
 
Unfortunately I can not do that. I don't know where it will be installed and I can not ask every host to change his settings just because of me :(

Isn't there some other way ?

&quot;Taxes are the fees we pay for civilized society&quot; G.W.
 
Perhaps you can either ask your ISP to help you... OR if you don't get any satisfaction from them, find another ISP that will!

If you never ask, you'll never find out.

Pete.


Web Developer &amp; Aptrix / Lotus Workplace Web Content Management (LWWCM) Specialist
w: e: Pete.Raleigh(at)lclimited.co.uk
 
Again, I will have no contact with the hosts only my clients will, so I can not ask them to do that. Please turning it off create some security issues, so not the best solution either :(

&quot;Taxes are the fees we pay for civilized society&quot; G.W.
 
I dont see any security issue in using or not of the relative paths...
I dont see why Windows 2000 suports it and 2003 woudnt?

________
George, M
Searches(faq333-4906),Carts(faq333-4911)
 
I have no clue why, but that is the reason why Windows 2003 has it turned off by default.

&quot;Taxes are the fees we pay for civilized society&quot; G.W.
 
yes true bu that's why Windows 2003 doesnt have the Admin Scripts on the AdminScripts directory. Since i assume that most of the ISP doesnt use those scripts for administration... it wont be a problem.

________
George, M
Searches(faq333-4906),Carts(faq333-4911)
 
True, it still doesn't solve my problem though :(
But I guess there is no good way of bing prepared for every possible hosting solution ..... Thank you guys.

&quot;Taxes are the fees we pay for civilized society&quot; G.W.
 
I knw, but as i was mentioned Windows 2003 it's very fexible, and you can assign to every web folder with it's own security issue.
It only takes that your web server name from IIS management console to Enable parent path and also denying access to all the folder below your web server path(This is IIS 6.0 default security model).

________
George, M
Searches(faq333-4906),Carts(faq333-4911)
 
Thanks shaddow, I'm still on Win2000 box so I can't test it, but I'll give it a try next week, when I upgrade :) (very much looking forward to it)

The bottom line is though, that I can not auto generate the path value in
<!--#include virtual="/root/folder/file.asp"-->
Right ?

&quot;Taxes are the fees we pay for civilized society&quot; G.W.
 
That won't help much, would it :)
Thanks guys.

&quot;Taxes are the fees we pay for civilized society&quot; G.W.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top