我无法让服务器端包含工作.我只想将一个html文件包含在另一个中,我似乎无法让它工作
服务器是运行Windows XP的另一台计算机(不是localhost).我有一个略高版本的xampp堆栈,它只运行Apache/2.2.11
虚拟目录(在httpd-vhosts.conf中)配置为
Run Code Online (Sandbox Code Playgroud)<Directory "c:\www\dev1"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all </Directory>
index.html包含
A Big Block of Text<br />
A Big Block of Text<br />
<!-- #include file="test.shtml" -->
A Big Block of Text<br />
A Big Block of Text<br />
Run Code Online (Sandbox Code Playgroud)
test.shtml包含
This is another line
Run Code Online (Sandbox Code Playgroud)
在我的开发机器上的浏览器中,www.dev.com/index.html显示
A Big Block of Text<br />
A Big Block of Text<br />
A Big Block of Text<br />
A Big Block of Text<br /> …Run Code Online (Sandbox Code Playgroud)