duanjian5059 2016-06-02 16:48
浏览 109
已采纳

Xampp - 在浏览器中无法读取PHP,MySQLi - 与PEAR的致命错误

I don't know what exactly happens because I have a page ready to handle-up a login system but it's only programmed in html and css yet. Why?

Because when I try to program something in php like this to start making the login system works;

Document called Connections

<?php
$con = mysqli_connect("localhost", "root", "84df86a16c3bf8fb94dd3824b9144604", "thunderorbit");
?>

My register document with all the html

<?php
require '/ThunderOrbit/Loginscreen/Connections.php';
?>

all the html (I won't paste it or it will ocupy the whole page xD but it works before I write nothing in PHP or using mySQLi with PHP)

The error log;

Warning: require(/ThunderOrbit/Loginscreen/Connections.php): failed to open stream: No such file or directory in C:\xampp\htdocs\ThunderOrbit\Loginscreen\Loginscreen-Index.php on line 4

Fatal error: require(): Failed opening required '/ThunderOrbit/Loginscreen/Connections.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\ThunderOrbit\Loginscreen\Loginscreen-Index.php on line 4

Attention to (include_path='C:\xampp\php\PEAR') please I don't understand what to do, help!!

  • 写回答

4条回答 默认 最新

  • duannao3819 2016-06-02 23:54
    关注

    Yeah!

    I was so stupid. The solution was here:

    Change

    <?php
    
    require '/ThunderOrbit/Loginscreen/Loginscreen-Connections/Loginscreen-Connections.php';
    
    ?>
    

    To

    <?php
    
    require '/Loginscreen-Connections/Loginscreen-Connections.php';
    
    ?>
    

    Because php isn't the same as html or css, talking of links. I got the solution thinking by five minutes and I started to laugh xD. Thank you guys!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 msix packaging tool打包问题
  • ¥28 微信小程序开发页面布局没问题,真机调试的时候页面布局就乱了
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线