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

#include

If I want to include a file to my webpage that is not placed in the same
folder asd the application, but in another folder on the same disk...

I found out that this is not going to work:
<!--#include virtual="D:/binaer.no/nova/test.asp"-->

Is there any other way to include from another domain account on the same
server?

There is going to be several applications that includes the same file, so
the trix ../../../ will not do it for me...
Christopher Brandsdal
Jul 19 '05 #1
8 1894
(a) use file instead of virtual
(b) this is not unix, use backslashes for local file references

<!--#include file="D:\binear.no\nova\test.asp"-->

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Christopher Brandsdal" <br*******@binaer.no> wrote in message
news:up**************@TK2MSFTNGP11.phx.gbl...
If I want to include a file to my webpage that is not placed in the same
folder asd the application, but in another folder on the same disk...

I found out that this is not going to work:
<!--#include virtual="D:/binaer.no/nova/test.asp"-->

Is there any other way to include from another domain account on the same
server?

There is going to be several applications that includes the same file, so
the trix ../../../ will not do it for me...
Christopher Brandsdal

Jul 19 '05 #2
Thanks, but it still does not work....

The Include tag looks like this:
<!--#include file="D:\binaer.no\Nova\test.asp"-->

but I still get this error:
---------------------------------------------------------------------------
-----
Active Server Pages error 'ASP 0126'

Include file not found

/client/test.asp, line 11

The include file 'D:\binaer.no\Nova\test.asp' was not found.

----------------------------------------------------------------------------
-----

I have used my explorer to find the path, ant it is of caurse right. Tripple
checked ;) So theres got to be something else strange that I can not
understand..

Thank you so much for helping me Aaron! It is a GREAT help for me!

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:eD**************@TK2MSFTNGP09.phx.gbl...
(a) use file instead of virtual
(b) this is not unix, use backslashes for local file references

<!--#include file="D:\binear.no\nova\test.asp"-->

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Christopher Brandsdal" <br*******@binaer.no> wrote in message
news:up**************@TK2MSFTNGP11.phx.gbl...
If I want to include a file to my webpage that is not placed in the same
folder asd the application, but in another folder on the same disk...

I found out that this is not going to work:
<!--#include virtual="D:/binaer.no/nova/test.asp"-->

Is there any other way to include from another domain account on the same server?

There is going to be several applications that includes the same file, so the trix ../../../ will not do it for me...
Christopher Brandsdal


Jul 19 '05 #3
Are you sure IUSR_machinename has access to that folder?

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Christopher Brandsdal" <br*******@binaer.no> wrote in message
news:#3**************@TK2MSFTNGP10.phx.gbl...
Thanks, but it still does not work....

The Include tag looks like this:
<!--#include file="D:\binaer.no\Nova\test.asp"-->

but I still get this error:
------------------------------------------------------------------------- -- -----
Active Server Pages error 'ASP 0126'

Include file not found

/client/test.asp, line 11

The include file 'D:\binaer.no\Nova\test.asp' was not found.

-------------------------------------------------------------------------- -- -----

I have used my explorer to find the path, ant it is of caurse right. Tripple checked ;) So theres got to be something else strange that I can not
understand..

Thank you so much for helping me Aaron! It is a GREAT help for me!

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:eD**************@TK2MSFTNGP09.phx.gbl...
(a) use file instead of virtual
(b) this is not unix, use backslashes for local file references

<!--#include file="D:\binear.no\nova\test.asp"-->

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Christopher Brandsdal" <br*******@binaer.no> wrote in message
news:up**************@TK2MSFTNGP11.phx.gbl...
If I want to include a file to my webpage that is not placed in the same folder asd the application, but in another folder on the same disk...

I found out that this is not going to work:
<!--#include virtual="D:/binaer.no/nova/test.asp"-->

Is there any other way to include from another domain account on the same server?

There is going to be several applications that includes the same file, so the trix ../../../ will not do it for me...
Christopher Brandsdal



Jul 19 '05 #4
Yes, because it is a domain account..
D:\binaer.no\Nova\test.asp = www.binaer.no/nova/test.asp

The code is running from
D:\fagernesweb.no\client\test.asp = www.fagernesweb.no/client/test.asp
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:e1**************@TK2MSFTNGP10.phx.gbl...
Are you sure IUSR_machinename has access to that folder?

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Christopher Brandsdal" <br*******@binaer.no> wrote in message
news:#3**************@TK2MSFTNGP10.phx.gbl...
Thanks, but it still does not work....

The Include tag looks like this:
<!--#include file="D:\binaer.no\Nova\test.asp"-->

but I still get this error:

------------------------------------------------------------------------- --
-----
Active Server Pages error 'ASP 0126'

Include file not found

/client/test.asp, line 11

The include file 'D:\binaer.no\Nova\test.asp' was not found.


--------------------------------------------------------------------------
--
-----

I have used my explorer to find the path, ant it is of caurse right.

Tripple
checked ;) So theres got to be something else strange that I can not
understand..

Thank you so much for helping me Aaron! It is a GREAT help for me!

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:eD**************@TK2MSFTNGP09.phx.gbl...
(a) use file instead of virtual
(b) this is not unix, use backslashes for local file references

<!--#include file="D:\binear.no\nova\test.asp"-->

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Christopher Brandsdal" <br*******@binaer.no> wrote in message
news:up**************@TK2MSFTNGP11.phx.gbl...
> If I want to include a file to my webpage that is not placed in the same > folder asd the application, but in another folder on the same disk... >
> I found out that this is not going to work:
> <!--#include virtual="D:/binaer.no/nova/test.asp"-->
>
> Is there any other way to include from another domain account on the

same
> server?
>
> There is going to be several applications that includes the same
file, so
> the trix ../../../ will not do it for me...
>
>
> Christopher Brandsdal
>
>



Jul 19 '05 #5
Well, I don't know, since I can't see your machines, I can only take your
word that IUSR has access. I don't know if anyone will be able to offer you
any more than that.

--
http://www.aspfaq.com/
(Reverse address to reply.)

"Christopher Brandsdal" <br*******@binaer.no> wrote in message
news:#g*************@tk2msftngp13.phx.gbl...
Yes, because it is a domain account..
D:\binaer.no\Nova\test.asp = www.binaer.no/nova/test.asp

The code is running from
D:\fagernesweb.no\client\test.asp = www.fagernesweb.no/client/test.asp

Jul 19 '05 #6
hehe ok thanks!

But my question was in the first place: is it possible to include for
instance D:\binaer.no\Nova\test.asp
And your answer is 'yes':)
So I think I'll just keep trying till I get it to work ;)
I'll let you know if I find the solution!
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:ew**************@TK2MSFTNGP10.phx.gbl...
Well, I don't know, since I can't see your machines, I can only take your
word that IUSR has access. I don't know if anyone will be able to offer you any more than that.

--
http://www.aspfaq.com/
(Reverse address to reply.)

"Christopher Brandsdal" <br*******@binaer.no> wrote in message
news:#g*************@tk2msftngp13.phx.gbl...
Yes, because it is a domain account..
D:\binaer.no\Nova\test.asp = www.binaer.no/nova/test.asp

The code is running from
D:\fagernesweb.no\client\test.asp = www.fagernesweb.no/client/test.asp


Jul 19 '05 #7
Rename the folder name
binaer.no
as its contains "." might be creating problem..
and try aaron's suggessted syntax
cheers
dave
-----Original Message-----
hehe ok thanks!

But my question was in the first place: is it possible to include forinstance D:\binaer.no\Nova\test.asp
And your answer is 'yes':)
So I think I'll just keep trying till I get it to work ;)
I'll let you know if I find the solution!
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in messagenews:ew**************@TK2MSFTNGP10.phx.gbl...
Well, I don't know, since I can't see your machines, I can only take your word that IUSR has access. I don't know if anyone will be able to offer
you
any more than that.

--
http://www.aspfaq.com/
(Reverse address to reply.)

"Christopher Brandsdal" <br*******@binaer.no> wrote in

message news:#g*************@tk2msftngp13.phx.gbl...
> Yes, because it is a domain account..
> D:\binaer.no\Nova\test.asp = www.binaer.no/nova/test.asp >
> The code is running from
> D:\fagernesweb.no\client\test.asp =
www.fagernesweb.no/client/test.asp

.

Jul 19 '05 #8
Thanks dave! I'll try ;)
"dave" <an*******@discussions.microsoft.com> wrote in message
news:48****************************@phx.gbl...
Rename the folder name
binaer.no
as its contains "." might be creating problem..
and try aaron's suggessted syntax
cheers
dave
-----Original Message-----
hehe ok thanks!

But my question was in the first place: is it possible

to include for
instance D:\binaer.no\Nova\test.asp
And your answer is 'yes':)
So I think I'll just keep trying till I get it to work ;)
I'll let you know if I find the solution!
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote

in message
news:ew**************@TK2MSFTNGP10.phx.gbl...
Well, I don't know, since I can't see your machines, I can only take your word that IUSR has access. I don't know if anyone will be able to offer
you
any more than that.

--
http://www.aspfaq.com/
(Reverse address to reply.)

"Christopher Brandsdal" <br*******@binaer.no> wrote in

message news:#g*************@tk2msftngp13.phx.gbl...
> Yes, because it is a domain account..
> D:\binaer.no\Nova\test.asp = www.binaer.no/nova/test.asp >
> The code is running from
> D:\fagernesweb.no\client\test.asp = www.fagernesweb.no/client/test.asp

.

Jul 19 '05 #9

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

Similar topics

43
by: steve | last post by:
I am quite frustrated with php’s include, as I have spent a ton of time on it already... anyone can tell me why it was designed like this (or something I don’t get)? The path in include is...
0
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
60
by: Derrick Coetzee | last post by:
It seems like, in every C source file I've ever seen, there has been a very definite include order, as follows: - include system headers - include application headers - include the header...
9
by: zolli | last post by:
Hi, I've been banging my head against this for a while now. Hoping someone here can shed some light on what's going on. On including stdlib.h in a file, I'm seeing the following errors: ...
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: Minh | last post by:
I've just installed VS.NET 2003 on my Athlon XP 1800+. However I couldn't get any project with STL includes to compile even if I create a new empty project (and added #include <string>). It gave me...
1
by: ya man | last post by:
when i use #include <iostream.h> in some files i get lots of error messages of the kind 'ambiguous symbol this is solved when i use #include <iostream why is that ? and can i use #include...
3
by: Arpi Jakab | last post by:
I have a main project that depends on projects A and B. The main project's additional include directories list is: ...\ProjectA\Dist\Include ...\ProjectB\Dist\Include Each of the include...
14
by: Jon Rea | last post by:
I am currently cleaning up an application which was origainlly hashed together with speed of coding in mind and therefore contains quite a few "hacky" shortcuts. As part of this "revamping"...
7
by: Giancarlo Bassi | last post by:
Please, what are here the 11 include files (found over the internet)? */mozzarella.c /* #include #include #include #include #include #include
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.