php调用html文件是问题
用Php编写了一个小网站,希望每个网页顶端保持一致,因此,对每个Php文件调用了一个html的头文件,名称为head.html,但是用include_once、include、require_once
(<?php include_once("head.htm"); ?>)
等命令调用均出错,出错信息如下:
Warning: main(head.html) [function.main]: failed to open stream: No such file or directory in F:\www\temp\limit.php on line 16
Warning: main() [function.include]: Failed opening 'head.html' for inclusion (include_path='.;C:\php5\pear') in F:\www\temp\limit.php on line 16
请高手指点?
------解决方案--------------------
你不是有个head.html 吗?但你写的包含的是head.htm
你看看是不是因为这个