-1

编辑:我正在使用引导程序编辑:当我在actualites.php(文件结尾)中包含底部和页脚时,它可以工作。

我正在建设一个网站,我想通过 url 包含一个内容。所以我有 :

<?php 
  // Menu
  include_once "menu.php";
  // Content
  include_once "contenu.php";
  // Bottom
  include_once "bottom.php";
  // Footer
  include_once "footer.php";
?>

当我访问 url domain-name/apropos 时,出现了 bottom.php 和 footer.php。但随后我访问了 domain-name/actualites,没有出现底部和页脚。

这是错误日志文件的内容:

[Mon Aug 08 14:44:55.832020 2016] [core:warn] [pid 7276:tid 340] AH00098: pid file D:/UwAmp/bin/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Aug 08 14:44:56.081628 2016] [ssl:warn] [pid 7276:tid 340] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Aug 08 14:44:56.097228 2016] [mpm_winnt:notice] [pid 7276:tid 340] AH00455: Apache/2.4.10 (Win32) OpenSSL/1.0.1h PHP/5.4.31 configured -- resuming normal operations
[Mon Aug 08 14:44:56.097228 2016] [mpm_winnt:notice] [pid 7276:tid 340] AH00456: Apache Haus VC9 Server built: Jul 15 2014 20:34:18
[Mon Aug 08 14:44:56.097228 2016] [core:notice] [pid 7276:tid 340] AH00094: Command line: 'D:\\UwAmp\\bin\\apache\\bin\\httpd.exe -d D:/UwAmp/bin/apache -f D:\\UwAmp\\bin\\apache\\conf\\httpd.conf'
[Mon Aug 08 14:44:56.097228 2016] [mpm_winnt:notice] [pid 7276:tid 340] AH00418: Parent: Created child process 7524
AH00548: NameVirtualHost has no effect and will be removed in the next release D:/UwAmp/bin/apache/conf/httpd.conf:264
[Mon Aug 08 14:44:57.033258 2016] [ssl:warn] [pid 7524:tid 352] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Aug 08 14:44:57.111261 2016] [mpm_winnt:notice] [pid 7524:tid 352] AH00354: Child: Starting 64 worker threads.
4

1 回答 1

0

所以最后我复制了 php 文件,重命名它,使用复制的文件,现在它可以工作了,即使内容是一样的。

我真的不明白。

感谢大家。

于 2016-08-09T09:40:43.723 回答