我的主文件夹是播放。它包含 config.php 和登录文件夹
login 文件夹有一个名为的子文件夹ckeditor
,它包含子文件夹 _samples。它有我的 php 文件 selectnew.php
我想将 config.php 包含到 selectnew.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