当前位置:Gxlcms > PHP教程 > 新手求解include_path有关问题

新手求解include_path有关问题

时间:2021-07-01 10:21:17 帮助过:22人阅读

新手求解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())";

人气教程排行