include_once 在一个页面上有效,但在其他页面上无效,displaying_error 没有错误
include_once works in one page but not other, no errors with displaying_error on
编辑:我正在使用 bootstrap
编辑:当我在 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 appears.But 然后我访问 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 文件,重命名它,使用复制的文件,现在即使内容相同也能正常工作了。
真不懂
谢谢大家。
编辑:我正在使用 bootstrap 编辑:当我在 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 appears.But 然后我访问 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 文件,重命名它,使用复制的文件,现在即使内容相同也能正常工作了。
真不懂
谢谢大家。