dongzhi1851 2014-08-27 15:01
浏览 660

警告:require_once:致命错误:require_once():需要打开失败

can someone help me for better and the simplest explaination for my problem. This is my problem... this is my coding

<?php require_once('Connections/key1.php'); ?>

can someone help??

  • 写回答

1条回答 默认 最新

  • douneiben2240 2014-08-27 15:21
    关注
    1. make sure the file key1.php exists somewhere.
    2. make sure that you are pointing to that 'somewhere' in your require_once statement.
    3. make sure that key1.php is not throwing any errors.

    The best way to check key1 is to turn error checking on and running the script directly from the browser. Add this to the top of the key1.php after the opening php tag:

    error_reporting(E_ALL);
    

    Also, you might want to add a simple

    echo "Hello";
    

    After the error reporting to see if that gets echoed when you run from the browser. If it does not, and no errors show, you have a compile-time error that error reporting cannot catch. Check your code carefully.

    Capitalization counts, so if the file is the connections folder, make sure that it is Connections and not connections.

    评论

报告相同问题?

悬赏问题

  • ¥50 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥200 uniapp长期运行卡死问题解决
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?