【发布时间】:2012-12-06 10:43:24
【问题描述】:
可能重复:
PHP: Warning: include failed to open stream no such file or directory on Windows
我的主文件夹是 play。它包含 config.php 和登录文件夹
登录文件夹有一个名为ckeditor 的子文件夹,它包含子文件夹_samples。它有我的 php 文件 selectnew.php
我想在 selectnew.php 中包含 config.php。
我设置的路径如下:
include('play\config.php');
我也试过了
include('play/config.php');
但结果如下:
Warning: include(play/config.php) [function.include]: failed to open stream: No such file or directory in D:\wamp\www\play\logins\ckeditor\_samples\selectnew.php on line 7
Warning: include() [function.include]: Failed opening 'play/config.php' for inclusion (include_path='.;C:\php5\pear') in D:\wamp\www\play\logins\ckeditor\_samples\selectnew.php on line 7
我的文件夹
play folder
--config.php
logins folder
ckeditor folder
_samples folder
selectnew.php
【问题讨论】: