繁体   English   中英

PHP要求不出现

[英]PHP Require not showing up

我这里有一个奇怪的问题。 我正在尝试通过php require()函数为我的网站添加页脚,但它没有显示,相反,它显示了将我重定向到http://cjtekkit.net/function.require的链接

http://cjtekkit.net/上自己检查问题

奇怪的是,我对网站顶部的标题和按钮做了同样的操作,但底部却无法配合。

有什么想法或解决方案吗?

这很简单:

http://cjtekkit.net/main_look_bottom.html找不到

文件main_look_bottom.html丢失, main_look_top.html存在-您可以设置标题。

这是PHP给您的错误消息的一部分,但由于页面的样式而看不到。 如果您在浏览器中查看源,则会看到它:

<b>Warning</b>:  require(/home/woutegx92/domains/cjtekkit.net/public_html/main_look_bottom.html) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in <b>/home/woutegx92/domains/cjtekkit.net/public_html/index.php</b> on line <b>33</b><br />
<br />
<b>Fatal error</b>:  require() [<a href='function.require'>function.require</a>]: Failed opening required '/home/woutegx92/domains/cjtekkit.net/public_html/main_look_bottom.html' (include_path='.:/usr/local/lib/php') in <b>/home/woutegx92/domains/cjtekkit.net/public_html/index.php</b> on line <b>33</b><br />

这意味着您要包含的文件不存在。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM