当前位置: 代码迷 >> PHP >> php调用html文件是有关问题
  详细解决方案

php调用html文件是有关问题

热度:669   发布时间:2012-02-02 23:57:14.0
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
你看看是不是因为这个
  相关解决方案