Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
| Search | Today's Posts | Mark Forums Read
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 13th, 2004, 03:15 AM
Registered User
 
Join Date: Jan 2004
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Include files with "../" on Windows 2003

I just migrated a site from Windows 2000 (where it worked great) to Windows 2003. I have an include file that references a file in a directory above the current one.



Windows 2003 doesn't like this & I can seem to get it to like any path I enter.

Suggestions?
Thanks


 
Old January 13th, 2004, 03:37 AM
Friend of Wrox
Points: 1,315, Level: 14
Points: 1,315, Level: 14 Points: 1,315, Level: 14 Points: 1,315, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , .
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Is this an IIS server? I have no experience of IIS but generally speaking 'include file' shouldn't work. It doesn't let you step upwards in the directory tree. Use include virtual instead. It accepts a path relative to the document root.



I'm not sure, but you may have another problem there too. I don't know why but often (always?) servers require a space before the end of the 'comment' tag.

So: ..." -->
Not: ..."-->

Hope any of that worksw now.

(o<
//\ =^..^=
 
Old January 13th, 2004, 05:33 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Another thing is that if you have IIS lockdown set up it forbids resolution of parent paths, i.e. using .. in path names. Look up IIS lockdown on msdn for advice how to modify settings.

Joe

--

Joe




Similar Threads
Thread Thread Starter Forum Replies Last Post
include files b00gieman Classic ASP Basics 2 September 15th, 2007 10:22 AM
Include files tarang SQL Server 2000 1 July 18th, 2007 03:32 AM
Include Files jmss66 Classic ASP Basics 16 June 9th, 2004 10:20 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.