doumao1917 2009-01-15 15:19
浏览 35
已采纳

PHP登录连接疑难解答

I have encountered a problem that I have not come accross yet when setting up a log in page using php.

The page has a error message that relates to line 1 ( require_once('../Connections/Login.php)

that states

[function.require-once]: failed to open stream: No such file or directory Fatal Error: require_once() [function.require]: failed opening required ... (include_path='.:/usr/share/pear-php5')

I know it is probably really simple and stupid, but I'm really struggling to self-troubleshoot and would really value some help please?


This is where I have been so confused. I also thought the same, that it just couldn't find the file; however the structure is just as you have said:

htdocs/comparison.php (the log in page) htdocs/Connections/connComparisonLogin.php

Sorry this is going to confuse you, I simplified the actual script in my original question and here is the actual error message:

Warning: require_once(../Connections/connComparisonLogin.php) [function.require-once]: failed to open stream: No such file or directory in /home/fhlinux135/s/suzukigenuine.com/user/htdocs/comparison.php on line 1

Fatal error: require_once() [function.require]: Failed opening required '../Connections/connComparisonLogin.php' (include_path='.:/usr/share/pear-php5') in /home/fhlinux135/s/suzukigenuine.com/user/htdocs/comparison.php on line 1

Have I done it all wrong?

  • 写回答

4条回答 默认 最新

  • doumi1311 2009-01-15 16:12
    关注

    I think your require statement should be:

    require_once 'Connections/connComparisonLogin.php';
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100