原有的项目上新增个单独的页面调用原项目的数据库出错??急
程序员文章站
2022-03-25 08:31:03
...
config\conn.php 这是数据库的页面
mod\result\index.php 这是我新页面里用了
就报错
Warning: require_once(config/conn.php): failed to open stream: No such file or directory in S:\website\hcgames\mod\result\index.php on line 1
Fatal error: require_once(): Failed opening required 'config/conn.php' (include_path='.;S:\xampp\php\PEAR') in S:\website\hcgames\mod\result\index.php on line 1
mod\result\index.php 这是我新页面里用了
就报错
Warning: require_once(config/conn.php): failed to open stream: No such file or directory in S:\website\hcgames\mod\result\index.php on line 1
Fatal error: require_once(): Failed opening required 'config/conn.php' (include_path='.;S:\xampp\php\PEAR') in S:\website\hcgames\mod\result\index.php on line 1
回复讨论(解决方案)
S:\website\hcgames\mod\result\index.php
S:\website\hcgames\mod\result\config/conn.php
不是这样的就请调整
谢谢。确实路径问题。。
上一篇: 关于数组迭代的相关内容总结