473,765 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Include Files

FP 2000
I have a single Include file that I want to use on multiple sites. I'm trying to use the
following (or some variation) but can't make it work.

<!--#INCLUDE FILE="www.myoth ersite.com/FavLinks.inc"-->

Earl

Dec 5 '07 #1
19 2166
"Earl Partridge" <ea*****@pearne t.comwrote in message
news:OE******** ******@TK2MSFTN GP04.phx.gbl...
FP 2000
I have a single Include file that I want to use on multiple sites. I'm
trying to use the following (or some variation) but can't make it work.

<!--#INCLUDE FILE="www.myoth ersite.com/FavLinks.inc"-->
The following is from:
<URL:http://www.hardcoder.c om/scripting/php/include_files.p hp>

How to Use Include Files in ASP

There are two ways to include files in ASP. With the "include file"
or "include virtual" options. "Include virtual" tells ASP where the
include file is relative to the web root directory, "include file" tells
ASP where the file is relative to the current directory. Use either
of the following tags to include files in ASP:

<!-- #include virtual="/includes/header.asp" -->
(tells ASP where the file is located relative to the root web directory)

<!-- #include file="../includes/header.asp" -->
(tells ASP where the file is relative to its current directory)
Dec 5 '07 #2
Earl Partridge wrote:
FP 2000
I have a single Include file that I want to use on multiple sites. I'm
trying to use the
following (or some variation) but can't make it work.

<!--#INCLUDE FILE="www.myoth ersite.com/FavLinks.inc"-->

Earl
I don't know if you can include external files from other websites.

Steve
Dec 5 '07 #3

"Dooza" <st*****@SPAM.d ooza.tvwrote in message
news:uV******** *****@TK2MSFTNG P06.phx.gbl...
Earl Partridge wrote:
>FP 2000
I have a single Include file that I want to use on multiple sites. I'm
trying to use the
following (or some variation) but can't make it work.
<!--#INCLUDE FILE="www.myoth ersite.com/FavLinks.inc"-->
Earl

I don't know if you can include external files from other websites.

Steve
No you can't, which is what McKirahan almost said. The path must be a
relative one to the current or virtual directory. Not a URL.

--
Mike Brind
Dec 5 '07 #4
I've done the INCLUDE VIRTUAL for referring to another FOLDER on the
same web site, but I want to include a file fron another web site.
Earl
"McKirahan" <Ne**@McKirahan .comwrote in message
news:aK******** *************** *******@comcast .com...
>"Earl Partridge" <ea*****@pearne t.comwrote in message
news:OE******* *******@TK2MSFT NGP04.phx.gbl.. .
FP 2000
I have a single Include file that I want to use on multiple sites. I'm
trying to use the following (or some variation) but can't make it work.

<!--#INCLUDE FILE="www.myoth ersite.com/FavLinks.inc"-->

The following is from:
<URL:http://www.hardcoder.c om/scripting/php/include_files.p hp>

How to Use Include Files in ASP

There are two ways to include files in ASP. With the "include file"
or "include virtual" options. "Include virtual" tells ASP where the
include file is relative to the web root directory, "include file" tells
ASP where the file is relative to the current directory. Use either
of the following tags to include files in ASP:

<!-- #include virtual="/includes/header.asp" -->
(tells ASP where the file is located relative to the root web directory)

<!-- #include file="../includes/header.asp" -->
(tells ASP where the file is relative to its current directory)


Dec 5 '07 #5
"Earl Partridge" wrote:
I've done the INCLUDE VIRTUAL for referring to another FOLDER on
the same web site, but I want to include a file fron another web
site.
Another site or another server?

We have about 30 web sites on one of our servers, and each has access to the
same virtual "include" folder structure. Is that what you mean?

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.

Dec 5 '07 #6
Since I have my sites hosted by another company, I suppose they could be
on different servers. Guess I'd have to find out from my hosting service.
Do you include the "URL"? Mike Brind just replied and said URL could not
be used...
Earl

"Dave Anderson" <NP**********@s pammotel.comwro te in message
news:13******** *****@corp.supe rnews.com...
"Earl Partridge" wrote:
>I've done the INCLUDE VIRTUAL for referring to another FOLDER on
the same web site, but I want to include a file fron another web
site.

Another site or another server?

We have about 30 web sites on one of our servers, and each has access to
the same virtual "include" folder structure. Is that what you mean?

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message.
Use of this email address implies consent to these terms.

Dec 5 '07 #7
Mike Brind wrote:
"Dooza" <st*****@SPAM.d ooza.tvwrote in message
news:uV******** *****@TK2MSFTNG P06.phx.gbl...
>Earl Partridge wrote:
>>FP 2000
I have a single Include file that I want to use on multiple sites.
I'm
>>trying to use the
following (or some variation) but can't make it work.
<!--#INCLUDE FILE="www.myoth ersite.com/FavLinks.inc"-->
Earl
I don't know if you can include external files from other websites.

Steve

No you can't, which is what McKirahan almost said. The path must be a
relative one to the current or virtual directory. Not a URL.
Thats what I thought but my quick Google came up with nothing concrete.
In a way I am glad it can't, otherwise content could be stolen all the time.

Steve
Dec 5 '07 #8

"Dooza" <st*****@SPAM.d ooza.tvwrote in message
news:Oz******** ******@TK2MSFTN GP04.phx.gbl...
Mike Brind wrote:
"Dooza" <st*****@SPAM.d ooza.tvwrote in message
news:uV******** *****@TK2MSFTNG P06.phx.gbl...
Earl Partridge wrote:
FP 2000
I have a single Include file that I want to use on multiple sites.
I'm
>trying to use the
following (or some variation) but can't make it work.
<!--#INCLUDE FILE="www.myoth ersite.com/FavLinks.inc"-->
Earl

I don't know if you can include external files from other websites.

Steve
No you can't, which is what McKirahan almost said. The path must be a
relative one to the current or virtual directory. Not a URL.

Thats what I thought but my quick Google came up with nothing concrete. In
a way I am glad it can't, otherwise content could be stolen all the time.

Steve
It could still be stolen if you suffix your include files with a variety of
file extensions that IIS is happy to serve without passing through asp.dll.
".inc" will be served up on IIS 5.x, but I believe from IIS 6 + this
behaviour was changed. Best thing to do is to make it an .asp file.

http://classicasp.aspfaq.com/general...ude-files.html
--
Mike Brind
Dec 5 '07 #9
Earl Partridge wrote:
Since I have my sites hosted by another company, I suppose they could
be on different servers. Guess I'd have to find out from my hosting
service. Do you include the "URL"? Mike Brind just replied and said
URL could not be used...
RTM: http://msdn2.microsoft.com/en-us/library/ms525940.aspx

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Dec 5 '07 #10

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

Similar topics

7
3291
by: Chad Scharf | last post by:
I have a legacy ASP application running on IIS 6.0 (Windows Server 2003 Web Edition) that is throwing an error when processesing a certain asp page that has about 200 or so include directives. We've checked the spelling, paths, include directives, and files individually and all of them work. We have also commented out random ones (4 or so at a time) and then the page works. It doesn't matter which ones we comment out, just so long as...
0
6137
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 file as folows. I need help to resolve them ASAP: cl /c /nologo /MDd /W3 /Od /GR /GM /Zi /GX /D "_DEBUG" /D " WIN32" /D "_W INDOWS" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /D "_USRDLL" /
7
3552
by: mescaline | last post by:
Hi, Suppose a_file.cpp contains a function a_function() Now to include it in main_file.cpp I just do #include "a_file.cpp" and I'm all set. i recently came across this seemingly roundabout way to do this in 3 steps: 1. Add in main_file.cpp
6
9579
by: atv | last post by:
Alright, i have some questions concerning include files en global variables.I hope someone is willing to answer these. 1).Why is it that if i define a global variable in a file, say main.c, and i have also other functions defined in that file, i can use the global in all functions, but once i split up the rest of the function in other files, i cannot use the global? Isn't that strange, all the files compiled should be treated as one...
5
2511
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 very carefully define the order in which paths are searched with command line options on the compiler. Both can cause problems, especially when dealing with complex software distributions. It occurs ot me that by extending the C include...
1
7497
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 a bunch of "missing ;" errors. I did reinstall the whole thing a few times but it didn't work. Anyone have any idea? Thanks c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xutility(862) :
1
4570
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 <iostream.h> in some way examples to the error messages c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\streamb.h(90): error C2872: 'ios' : ambiguous symbo c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\streamb.h(90): error C2872:...
9
4042
by: chat | last post by:
Hi, every body. I have 3 files like this: -------------------------------------------------------- file name : header.h #ifndef TEST_H #define TEST_H int a=1; double b=0.5;
2
3530
by: key9 | last post by:
Hi all look at the organize tree main.c ------ #include lib_adapter.c main() { foo();
16
2383
by: Chris Shearer Cooper | last post by:
In our Visual Studio 2005 application, we have several of our application's H files that are #included into stdafx.h. What is odd, is that when we change those application H files, VS2005 doesn't trigger a rebuild of the entire app (or of anything, for that matter). Is this a setting somewhere? Thanks!
0
9568
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9398
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10156
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9951
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9832
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5419
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2805
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.