【发布时间】:2016-08-08 11:39:30
【问题描述】:
编辑:我正在使用引导程序 编辑:当我在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.
【问题讨论】:
-
我猜是你访问域名/实际出现错误,开启报错看看有什么问题
-
我已通过添加 php 文件启用:ini_set('display_errors',1);错误报告(E_ALL);但我没有收到错误
-
在 php_ini 中:display_errors = On
-
@Johan 我不这么认为,因为问题不在于这个
标签: php html include-once