Home  >  Article  >  Backend Development  >  新手求解include_path有关问题

新手求解include_path有关问题

WBOY
WBOYOriginal
2016-06-13 13:45:191061browse

新手求解include_path问题?
add.php与conn.php在同一个文件夹里。。

Warning: include(../conn.php) [function.include]: failed to open stream: No such file or directory in E:\wwwroot\bbs1\add.php on line 3

Warning: include() [function.include]: Failed opening '../conn.php' for inclusion (include_path='.;C:\php5\pear') in E:\wwwroot\bbs1\add.php on line 3

这是什么原因?求解。。。

------解决方案--------------------
$sql="insert into message (user,title,content,lastdate) values ('{$_POST[user]}','{$_POST[title]}','{$_POST[content]}',now())";

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