包含文件 [英] Include Files

查看:50
本文介绍了包含文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

FP 2000

我有一个我想在多个站点上使用的Include文件。我正在尝试使用

跟随(或某些变化),但不能使它工作。


<! - #INCLLEE FILE =" www.myothersite.com/FavLinks.inc" - >


Earl

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.myothersite.com/FavLinks.inc"-->

Earl

推荐答案

" Earl Partridge" < ea ***** @ pearnet.com写了留言
"Earl Partridge" <ea*****@pearnet.comwrote in message

news:OE ************** @ TK2MSFTNGP04。 phx.gbl ...

FP 2000

我有一个我要在多个站点上使用的Include文件。我是

试图使用以下(或某些变体)但不能使它工作。


<! - #INCLLEE FILE =" www.myothersite.com/FavLinks.inc" - >
news:OE**************@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.

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



以下内容来自:
< URL:http://www.hardcoder.com/scripting/php/include_files.php> ;


如何在ASP中使用包含文件


有两种方法可以在ASP中包含文件。使用包含文件

或包含虚拟选项。 包括虚拟告诉ASP

包含文件是否相对于web根目录,包含文件告诉

ASP文件相对于当前目录的位置。使用以下标签中的
来包含ASP中的文件:


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

(告诉ASP文件相对于根网站目录的位置)


<! - #include file =" ../includes/header.asp" - >

(告诉ASP文件相对于当前目录的位置)

The following is from:
<URL:http://www.hardcoder.com/scripting/php/include_files.php>

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)


Earl Partridge写道:
Earl Partridge wrote:

FP 2000

我有一个我要在多个站点上使用的Include文件。我是

试图使用

跟随(或某些变化)但不能使它工作。


< ;! - #INCLUDE FILE =" www.myothersite.com/FavLinks.inc" - >


Earl
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.myothersite.com/FavLinks.inc"-->

Earl



我不知道你是否可以包含来自其他网站的外部文件。


Steve

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

Steve




" Dooza" < st ***** @ SPAM.dooza.tvwrote in message

news:uV ************* @ TK2MSFTNGP06.phx.gbl ...

"Dooza" <st*****@SPAM.dooza.tvwrote in message
news:uV*************@TK2MSFTNGP06.phx.gbl...

Earl Partridge写道:
Earl Partridge wrote:

> FP 2000
我有一个包含文件我想在多个网站上使用。我正在尝试使用
以下(或某些变体),但无法使其正常工作。
<! - #INFLUDE FILE =" www.myothersite。 com / FavLinks.inc" - >
Earl
>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.myothersite.com/FavLinks.inc"-->
Earl



我不知道你是否可以包含来自其他网站的外部文件。


Steve


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

Steve



不,你不能,这就是McKirahan几乎所说的。路径必须是当前或虚拟目录的相对于路径的
。不是网址。


-

Mike Brind

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


这篇关于包含文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆