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.

    评论

报告相同问题?

悬赏问题

  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私
  • ¥15 ROS系统搭建请教(跨境电商用途)