我已经在stackoverflow上尝试了所有可能的问题,但无法解决此问题…
<!--#include virtual="include.shtml"--> <!--#include virtual="include.html"--> <!--#include file="include.shtml"--> <!--#include file="include.html"--> <!--#include virtual="/include.shtml"--> <!--#include virtual="/include.html"--> <!--#include file="/include.shtml"--> <!--#include file="/include.html"--> <? include("/include.shtml"); ?> <? include("include.shtml"); ?> <? include("/include.html"); ?> <? include("include.html"); ?>
我尝试使用运行在localhost / include / index.html的apache服务器或者文件:///home/sahil/Desktop/include/index.html以及所有上述包含,但它们都不适合我:(.现在应该使用哪种方法我用来将一个HTML文件包含到另一个中,考虑到我的index.html和include.html都在同一个目录中???