当前位置: 代码迷 >> PHP >> 新手求解include_path有关问题
  详细解决方案

新手求解include_path有关问题

热度:400   发布时间:2012-03-19 22:03:05.0
新手求解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())";