473,396 Members | 2,017 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Include ../../.. path is mysterious - whats going on here?

Why is it that my index.asp file sitting in the following dir:

...wwwroot/EYS/new/hunter/356/

....will only accept an include file with the following path:

<!--#include file=-"../../../includes/forms/riverbend/form_box.asp">
Notice the preceeeding .../../../

which indicates the include sits here:

wwwroot/EYS/includes/forms/riverbend/
Why is this: Surely I should be able to reference the INCLUDE like this:

<!--#include file=-"includes/forms/riverbend/form_box.asp">

Yet this would be produce the following error.
The include file 'includes/forms/riverbend/form_box.asp' was not found.
But, to me this says the /includes/ folder is found off the root of
/catamaranco/

Can someone explain this cleary to me because [.../.../..] just does not
look right to me at all and is very confusing.


Jul 19 '05 #1
2 1573
That is expected when you do a file include. If you want the include to be
rooted from the root of the site, do a virtual include.
<!-- #include virtual="/includes/forms/riverbend/form_box.asp" -->

Ray at work

"jason" <ja***@catamaranco.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Why is it that my index.asp file sitting in the following dir:

..wwwroot/EYS/new/hunter/356/

...will only accept an include file with the following path:

<!--#include file=-"../../../includes/forms/riverbend/form_box.asp">
Notice the preceeeding .../../../

which indicates the include sits here:

wwwroot/EYS/includes/forms/riverbend/
Why is this: Surely I should be able to reference the INCLUDE like this:

<!--#include file=-"includes/forms/riverbend/form_box.asp">

Yet this would be produce the following error.
The include file 'includes/forms/riverbend/form_box.asp' was not found.
But, to me this says the /includes/ folder is found off the root of
/catamaranco/

Can someone explain this cleary to me because [.../.../..] just does not
look right to me at all and is very confusing.


Jul 19 '05 #2
Ok got it - I guess its a choice of one evil over another.

Thanks
Jason
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:ei**************@TK2MSFTNGP11.phx.gbl...
That is expected when you do a file include. If you want the include to be rooted from the root of the site, do a virtual include.
<!-- #include virtual="/includes/forms/riverbend/form_box.asp" -->

Ray at work

"jason" <ja***@catamaranco.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Why is it that my index.asp file sitting in the following dir:

..wwwroot/EYS/new/hunter/356/

...will only accept an include file with the following path:

<!--#include file=-"../../../includes/forms/riverbend/form_box.asp">
Notice the preceeeding .../../../

which indicates the include sits here:

wwwroot/EYS/includes/forms/riverbend/
Why is this: Surely I should be able to reference the INCLUDE like this:

<!--#include file=-"includes/forms/riverbend/form_box.asp">

Yet this would be produce the following error.
The include file 'includes/forms/riverbend/form_box.asp' was not found.
But, to me this says the /includes/ folder is found off the root of
/catamaranco/

Can someone explain this cleary to me because [.../.../..] just does not
look right to me at all and is very confusing.



Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jez | last post by:
I'm ashamed that I need to ask this question. I've been using PHP for almost a year now, and have used HTML extensively in the last few years. Often, when I create a new site, I use include() to...
3
by: rajuvk | last post by:
I am setting up a website with a number of folders like: / (the document root) /user /admin/ /content in the /user folder there is a flie "userlogged.php", which I want to include in every...
2
by: M Wells | last post by:
Hi All, I'm trying to track down a mysterious problem we're experiencing in which updates and inserts to tables in our mssql2k server appear to be 'disappearing.' To explain our situation: ...
5
by: David Mathog | last post by:
One thing that can make porting C code from one platform to another miserable is #include. In particular, the need to either place the path to an included file within the #include statement or to...
1
by: Alex VanderWoude | last post by:
I am trying to <include> some text into an XML documentation topic, but that text is stored in a file that is in a different directory than the "current" XML file. Using a relative path does not...
2
by: Susan Baker | last post by:
Hi, I am (trying) to compile some code I downloaded from the internet. The sources contain references to header files - using the form : #include <pathname/file> If I change the form to...
1
by: Bruce W.1 | last post by:
BACKGROUND My ASP.NET app has been running (or rather available) on a server for about 4 months now. The server is at http://www.webhost4life.com/ They don't add cookies to any of the sites...
4
by: Jon Slaughter | last post by:
I'm using eval to excute some mixed php and html code but I cannot debug it. I am essentially using filegetcontents to load up a php/html file and then inserting it into another php/html file and...
4
by: Michel Rouzic | last post by:
I made a program that accepts as parameters an input file name that we'll call file1, and an output file name that we'll call file2, and opens on its own a configuration file called file3. My...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.