新手求解include_path有关问题
程序员文章站
2022-05-02 11:03:56
...
新手求解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())";
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())";
相关文章
相关视频
上一篇: x_debug,该如何处理
下一篇: 无法计算上传文件的个数