Home >Backend Development >PHP Tutorial >原有的项目上新增个单独的页面调用原项目的数据库出错??急

原有的项目上新增个单独的页面调用原项目的数据库出错??急

WBOY
WBOYOriginal
2016-06-23 13:39:461123browse

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


回复讨论(解决方案)

S:\website\hcgames\mod\result\index.php
S:\website\hcgames\mod\result\config/conn.php
不是这样的就请调整

谢谢。确实路径问题。。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn