473,387 Members | 1,882 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,387 software developers and data experts.

Includes

I have an asp page. Now I know this is sortof OT, but I am not sure of the
forum to get an answer.

I have an include on this asp page

<!-- #include file=\forum\includes\consts-inc.asp -->

now, it gives me this error:
File attribute '\forum\includes\consts-inc.asp' cannot start with forward
slash or back slash.

i can't use .. either, because it gives me this error:The Include file
'..\forum\includes\consts-inc.asp' cannot contain '..' to indicate the
parent directory.

I tried with the slashes going / and \

if i use this:
<!-- #include file=forum/includes/consts-inc.asp -->
i get this:
The include file 'forum/includes/consts-inc.asp' was not found.

for some information. i the file that gives the error is in the includes
folder, which is in the root web. the forum folder is also in the root web.

so i am in folder unthe root, and trying to include a file from another
folder under the root.

how can i do this??

thanks in advance

Jeff
May 10 '06 #1
3 2504
http://support.microsoft.com/default...b;en-us;332117

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"Jeff" <gi*****@adelphia.net> wrote in message
news:go******************************@adelphia.com ...
I have an asp page. Now I know this is sortof OT, but I am not sure of the
forum to get an answer.

I have an include on this asp page

<!-- #include file=\forum\includes\consts-inc.asp -->

now, it gives me this error:
File attribute '\forum\includes\consts-inc.asp' cannot start with forward
slash or back slash.

i can't use .. either, because it gives me this error:The Include file
'..\forum\includes\consts-inc.asp' cannot contain '..' to indicate the
parent directory.

I tried with the slashes going / and \

if i use this:
<!-- #include file=forum/includes/consts-inc.asp -->
i get this:
The include file 'forum/includes/consts-inc.asp' was not found.

for some information. i the file that gives the error is in the includes
folder, which is in the root web. the forum folder is also in the root web.
so i am in folder unthe root, and trying to include a file from another
folder under the root.

how can i do this??

thanks in advance

Jeff

May 10 '06 #2

Jeff wrote:
I have an asp page. Now I know this is sortof OT, but I am not sure of the
forum to get an answer.

I have an include on this asp page

<!-- #include file=\forum\includes\consts-inc.asp -->

now, it gives me this error:
File attribute '\forum\includes\consts-inc.asp' cannot start with forward
slash or back slash.

i can't use .. either, because it gives me this error:The Include file
'..\forum\includes\consts-inc.asp' cannot contain '..' to indicate the
parent directory.

I tried with the slashes going / and \

if i use this:
<!-- #include file=forum/includes/consts-inc.asp -->
i get this:
The include file 'forum/includes/consts-inc.asp' was not found.

for some information. i the file that gives the error is in the includes
folder, which is in the root web. the forum folder is also in the root web.


Is includes in the web root or in the forums directory? What you've
said is contradictory. If your includes is really in the web root do
this:

<!--#include virtual="includes/consts-inc.asp"-->

If it is in the forums directory, which is in web root, do this:

<!--#include virtual="forums/includes/consts-inc.asp"-->

Oh, and your question is not OT. It's a general ASP question :-)

--
Mike Brind

May 10 '06 #3
Jeff wrote:
Mike Brind wrote:
Jeff wrote:
I have an asp page. Now I know this is sortof OT, but I am not sure of the
forum to get an answer.

I have an include on this asp page

<!-- #include file=\forum\includes\consts-inc.asp -->

now, it gives me this error:
File attribute '\forum\includes\consts-inc.asp' cannot start with forward
slash or back slash.

i can't use .. either, because it gives me this error:The Include file
'..\forum\includes\consts-inc.asp' cannot contain '..' to indicate the
parent directory.

I tried with the slashes going / and \

if i use this:
<!-- #include file=forum/includes/consts-inc.asp -->
i get this:
The include file 'forum/includes/consts-inc.asp' was not found.

for some information. i the file that gives the error is in the includes
folder, which is in the root web. the forum folder is also in the root web.

Is includes in the web root or in the forums directory? What you've
said is contradictory. If your includes is really in the web root do
this:

<!--#include virtual="includes/consts-inc.asp"-->

If it is in the forums directory, which is in web root, do this:

<!--#include virtual="forums/includes/consts-inc.asp"-->

Oh, and your question is not OT. It's a general ASP question :-)


well.. the forums is in the root... and of course forums/includes
isn't. my bad for wording that wrong.
i have this
<!--#include virtual="forums/includes/consts-inc.asp"-->
and still getting this

Include file not found

/includes/forum-inc.asp, line 37

The include file 'forums/includes/consts-inc.asp' was not found.


forums - plural

i looked over the permissions and i don't see
anything about parent paths.

i know the file is there, as here is the path copied straight from
the tree.

http://my.domain/forum/includes/consts-inc.asp


forum - singular
So which is it? Is the directory called forum or forums (plural)?
That's probably why the file can't be found.

Please make sure you reply to the newsgroup in future, not the
spam-trap email address I use here. The delay in responding is because
I hardly ever look at that email account. Lucky for you, I was kind of
bored this morning :-)

--
Mike Brind

May 15 '06 #4

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

Similar topics

13
by: Tim Tyler | last post by:
A fairly simple question: I have a library A which depends on library B and C. Currently I have: <?php include("A.inc.php"); include("B.inc.php"); include("C.inc.php");
2
by: Joe Mowry | last post by:
First off, I'm posting this question for a friend that doesn't have access to the news groups. Problem: Using PHP as the base and has several PHP < includes > for various functions, all this...
4
by: Patrick | last post by:
I have an ASP site with about 50 ASP files, all of which are currently including a common "includes.asp" file near the top of the file, responsible for generating the <HEAD/> section of the HTML ...
4
by: Generic Usenet Account | last post by:
I am seeing some unexpected behavior while using the STL "includes" algorithm. I am not sure if this is a bug with the template header files in our STL distribution, or if this is how it should...
2
by: David Muoio | last post by:
I am trying to validate an XML file against an XSD that is stored in the assembly as an embedded resource. I can get it to work as long as the XSD does not include other XSDs. After a fair amount...
12
by: tshad | last post by:
I am not sure why I am getting this error: I have the following code I want to run from another include file that holds all my functions. functions.inc...
6
by: William F. Zachmann | last post by:
We've got a project going that involves moving an old web site with a massive dll written in C++ that produces most of the output from a SQL 7.0 data base on NT4 onto IIS on Windows 2003 Server...
4
by: Ron | last post by:
Hi all, Trying to work out a few problems in using php on my site. Partially this is a html question. I was reading a lot of the posts and it seems that some of the includes people are using are...
1
by: JRough | last post by:
I have includes at the top of the file and I have inline includes also includes in mysql queries. For example: include './includes/config.inc.php'; include $include_path.'dates.inc.php';...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.