Include Files
am 05.12.2007 02:21:55 von Earl Partridge
This is a multi-part message in MIME format.
------=_NextPart_000_0006_01C836B3.50821F50
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
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.
Earl
------=_NextPart_000_0006_01C836B3.50821F50
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
charset=3Diso-8859-1">
FP 2000
I have a single Include file that I want to use on =
multiple=20
sites. I'm trying to use the
following (or some variation) but can't make it=20
work.
<!--#INCLUDE=20
FILE=3D"www.myothersite.com/FavLinks.inc"-->
Earl
size=3D2>
------=_NextPart_000_0006_01C836B3.50821F50--
Re: Include Files
am 05.12.2007 04:42:17 von McKirahan
> "Earl Partridge" wrote in message
> news:OEahP0tNIHA.4712@TK2MSFTNGP04.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.
>
>
The following is from:
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:
(tells ASP where the file is located relative to the root web directory)
(tells ASP where the file is relative to its current directory)
Re: Include Files
am 05.12.2007 11:25:38 von Dooza
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.
>
>
>
> Earl
>
I don't know if you can include external files from other websites.
Steve
Re: Include Files
am 05.12.2007 14:31:41 von Mike Brind
"Dooza" wrote in message
news:uVzHXkyNIHA.484@TK2MSFTNGP06.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.
>>
>> 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
Re: Include Files
am 05.12.2007 14:36:31 von Earl Partridge
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" wrote in message
news:aKudnchkpLpugMvanZ2dnUVZ_ramnZ2d@comcast.com...
>> "Earl Partridge" wrote in message
>> news:OEahP0tNIHA.4712@TK2MSFTNGP04.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.
>>
>>
>
> The following is from:
>
>
> 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:
>
>
> (tells ASP where the file is located relative to the root web directory)
>
>
> (tells ASP where the file is relative to its current directory)
>
>
Re: Include Files
am 05.12.2007 15:10:19 von Dave Anderson
"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.
Re: Include Files
am 05.12.2007 15:46:34 von Earl Partridge
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" wrote in message
news:13ldc9ebgmvesfc@corp.supernews.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.
Re: Include Files
am 05.12.2007 16:34:42 von Dooza
Mike Brind wrote:
> "Dooza" wrote in message
> news:uVzHXkyNIHA.484@TK2MSFTNGP06.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.
>>>
>>> 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
Re: Include Files
am 05.12.2007 21:18:32 von Mike Brind
"Dooza" wrote in message
news:OzA9DR1NIHA.5400@TK2MSFTNGP04.phx.gbl...
> Mike Brind wrote:
> > "Dooza" wrote in message
> > news:uVzHXkyNIHA.484@TK2MSFTNGP06.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.
> >>>
> >>> 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/should-i-use-the-inc-ex tension-for-my-include-files.html
--
Mike Brind
Re: Include Files
am 05.12.2007 21:19:01 von Dave Anderson
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.
Re: Include Files
am 05.12.2007 21:21:09 von Dave Anderson
Dooza wrote:
>> 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.
Are you suggesting content is *NOT* stolen all the time?
--
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.
Re: Include Files
am 06.12.2007 10:07:12 von Dooza
Mike Brind wrote:
> 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/should-i-use-the-inc-ex tension-for-my-include-files.html
One suggestion that I have heard is to use .inc.asp as this helps you as
a programmer to identify the file as an include. Any thoughts about this?
Steve
Re: Include Files
am 06.12.2007 10:08:25 von Dooza
Dave Anderson wrote:
> Dooza wrote:
>>> 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.
>
> Are you suggesting content is *NOT* stolen all the time?
No, that would be naive of me to think that, but I can see why my reply
looks like that.
Steve
Re: Include Files
am 06.12.2007 11:30:55 von Mike Brind
"Dooza" wrote in message
news:eFuxLd%23NIHA.4656@TK2MSFTNGP03.phx.gbl...
> Mike Brind wrote:
>> 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/should-i-use-the-inc-ex tension-for-my-include-files.html
>
> One suggestion that I have heard is to use .inc.asp as this helps you as a
> programmer to identify the file as an include. Any thoughts about this?
>
> Steve
If that helps you, then why not? Mine are identified by the fact that they
all sit in a directory called inc, include or includes or similar.
--
Mike Brind
Re: Include Files
am 06.12.2007 12:38:19 von Dooza
Mike Brind wrote:
> "Dooza" wrote in message
> news:eFuxLd%23NIHA.4656@TK2MSFTNGP03.phx.gbl...
>> Mike Brind wrote:
>>> 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/should-i-use-the-inc-ex tension-for-my-include-files.html
>> One suggestion that I have heard is to use .inc.asp as this helps
you as a
>> programmer to identify the file as an include. Any thoughts about this?
>>
>> Steve
>
> If that helps you, then why not? Mine are identified by the fact
that they
> all sit in a directory called inc, include or includes or similar.
Yes, mine are always in a directory called includes.
The suggestion was given to a poster in the Dreamweaver forums, as the
were naming it .inc and Dreamweaver wasn't displaying the code
correctly, naming it .inc.php was the solution to get Dreamweaver to
read the code so that code hints and colouring worked. Seems like PHP is
still vulnerable to .inc files being read and not processed.
Steve
Re: Include Files
am 06.12.2007 16:22:20 von Adrienne Boswell
Gazing into my crystal ball I observed Dooza
writing in news:eFuxLd#NIHA.4656@TK2MSFTNGP03.phx.gbl:
> Mike Brind wrote:
>> 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/should-i-use-the-inc-ex tension-
fo
>> r-my-include-files.html
>
> One suggestion that I have heard is to use .inc.asp as this helps you
> as a programmer to identify the file as an include. Any thoughts about
> this?
>
> Steve
nav_inc.asp
header_inc.asp
footer_inc.asp
DIR *_inc.asp will show all files with _inc.asp in their file name. I
would avoid too many dots.
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Re: Include Files
am 07.12.2007 09:52:01 von Dooza
Adrienne Boswell wrote:
> nav_inc.asp
> header_inc.asp
> footer_inc.asp
>
> DIR *_inc.asp will show all files with _inc.asp in their file name. I
> would avoid too many dots.
Out of interest, what would happen if I used the extra dot? Is there
known problems with certain browsers or servers?
Steve
Re: Include Files
am 07.12.2007 16:27:16 von Adrienne Boswell
Gazing into my crystal ball I observed Dooza
writing in news:#xx8W5KOIHA.280@TK2MSFTNGP03.phx.gbl:
> Adrienne Boswell wrote:
>> nav_inc.asp
>> header_inc.asp
>> footer_inc.asp
>>
>> DIR *_inc.asp will show all files with _inc.asp in their file name.
I
>> would avoid too many dots.
>
> Out of interest, what would happen if I used the extra dot? Is there
> known problems with certain browsers or servers?
>
If you are looking for a directory, *. lists directories, and *.* lists
files. Listing *.inc.asp might be confusing, especially if you were to
name a directory mydir.something because .something might be confused
with a file extension.
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Re: Include Files
am 07.12.2007 16:56:50 von Dave Anderson
Adrienne Boswell wrote:
> If you are looking for a directory, *. lists directories, and *.*
> lists files. Listing *.inc.asp might be confusing, especially if
> you were to name a directory mydir.something because .something
> might be confused with a file extension.
Doesn't your first assertion (*. lists directories) DEPEND on the assumption
that directory names have no dots and that files have them?
--
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.
Re: Include Files
am 07.12.2007 17:38:48 von Dooza
Adrienne Boswell wrote:
> Gazing into my crystal ball I observed Dooza
> writing in news:#xx8W5KOIHA.280@TK2MSFTNGP03.phx.gbl:
>
>> Adrienne Boswell wrote:
>>> nav_inc.asp
>>> header_inc.asp
>>> footer_inc.asp
>>>
>>> DIR *_inc.asp will show all files with _inc.asp in their file name.
> I
>>> would avoid too many dots.
>> Out of interest, what would happen if I used the extra dot? Is there
>> known problems with certain browsers or servers?
>>
>
> If you are looking for a directory, *. lists directories, and *.* lists
> files. Listing *.inc.asp might be confusing, especially if you were to
> name a directory mydir.something because .something might be confused
> with a file extension.
I see where you are coming from. So if I use a graphical file browser I
should be fine :)
Steve