Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Include ../../.. path is mysterious - whats going on here?

Reply
Thread Tools

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

 
 
jason
Guest
Posts: n/a
 
      09-16-2003
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.






 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      09-16-2003
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" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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.
>
>
>
>
>
>



 
Reply With Quote
 
 
 
 
jason
Guest
Posts: n/a
 
      09-16-2003
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:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > 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.
> >
> >
> >
> >
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/* #include <someyhing.h> */ => include it or do not include it?That is the question .... Andreas Bogenberger C Programming 3 02-22-2008 10:53 AM
ASP Error 0126 include file not found, when using ".." in include file path Eric ASP General 10 01-11-2007 07:38 AM
ASP Error 0126 include file not found, when using ".." in include file path Eric ASP General 0 01-09-2007 06:54 PM
Various path/path/files.asp all #include this 1 file \A_Michigan_User\ ASP General 1 07-10-2005 01:55 PM
Whats going on?? SirReadAlot MCSD 6 09-07-2004 05:03 PM



Advertisments