I just got a strange problem. I am including some files from my index.php, and now I got this error:
require(cfg/cfg.database.inc.php) [function.require]: failed to open stream: No such file or directory in C:\...\index.php on line XX
Strange is that it worked just a minute ago. I double checked the spelling of that filename.
What I did: I am using Notepad++ and I saw my code like this:
require("cfg/cfg.database.inc.php" );
I wanted to remove the space between "
and )
, so i moved the cursor there and pushed Del, but it deleted the last p
of .php
.
I deleted the whole line and rewrote it, and now I get the error that the file cannot be found. I also renamed the file which is not working. All files in the subdir cfg
get this error, but not those in other subdirs.
Anyone knows what I am doing wrong or what I can do to find the problem? Thanks.
/edit: My file structure
index.php
cfg/cfg.database.inc.php
cfg/cfg.other.inc.php
core/class.user.inc.php
core/...
All includes in core
work, none of those from cfg