【问题标题】:Error linking file while everything looks fine一切正常时链接文件时出错
【发布时间】:2012-04-03 04:11:06
【问题描述】:

我在链接文件时遇到问题。我确信我这边没有问题,因为我已经从我这边检查了一切。这是我上传的(通过 FileZilla),

website 上显示找不到此文件。

警告:require_once(classes/tc_calendar.php) [function.require-once]:无法打开流:没有这样的文件或 目录在 /home/content/34/8707934/html/RemindMe/demo4.php 上线 52

致命错误:require_once() [function.require]:打开失败 必需的“类/tc_calendar.php” (include_path='.:/usr/local/php5_3/lib/php') 在 /home/content/34/8707934/html/RemindMe/demo4.php 在第 52 行

现在我已经尽我所能找到错误所在,现在我没有想法。请帮帮我。谢谢

【问题讨论】:

    标签: php html require require-once


    【解决方案1】:

    路径好像错了,我想你忘记了目录

    require_once('calendar/classes/tc_calendar.php');
    

    【讨论】:

      【解决方案2】:

      这个文件: /home/content/34/8707934/html/RemindMe/demo4.php 第 52 行正在寻找位于 classes/ 中的文件,名为 tc_calendar.php

      您必须将此行更改为正确的路径:

      require_once('calendar/classes/tc_calendar.php');
      

      【讨论】:

        猜你喜欢
        • 2018-03-19
        • 2020-10-18
        • 1970-01-01
        • 2018-12-29
        • 1970-01-01
        • 2014-01-24
        • 2017-08-04
        • 2011-10-14
        • 1970-01-01
        相关资源
        最近更新 更多