Home  >  Article  >  Backend Development  >  php调用html文件是有关问题

php调用html文件是有关问题

WBOY
WBOYOriginal
2016-06-13 09:59:29784browse

php调用html文件是问题

用Php编写了一个小网站,希望每个网页顶端保持一致,因此,对每个Php文件调用了一个html的头文件,名称为head.html,但是用include_once、include、require_once

等命令调用均出错,出错信息如下:


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
你看看是不是因为这个

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn