Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
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
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.


Old January 13th, 2004, 03:37 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts

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.

//\ =^..^=
Old January 13th, 2004, 05:33 AM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

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.




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.