【问题标题】:PHP Require not showing upPHP 要求不显示
【发布时间】:2012-09-17 22:35:33
【问题描述】:

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

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

奇怪的是,我对网站顶部的标题和按钮做了同样的事情,但底部不配合。

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

【问题讨论】:

  • 你能显示你放在页脚的代码吗?

标签: php html require


【解决方案1】:

这是 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 />

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

【讨论】:

    【解决方案2】:

    很简单:

    http://cjtekkit.net/main_look_bottom.html - 未找到

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

    【讨论】:

    • 天哪,DERP!上传到错误的网站。上帝..我怎么会这么笨xD
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-01-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多