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

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

WBOY
Release: 2016-06-23 13:39:46
Original
1120 people have browsed it

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
不是这样的就请调整

谢谢。确实路径问题。。

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template