OK I'm quite sure this is the easiest question someone out there will ever answer.
I try to get and echo the contents of a file in the same level:
die(file_get_contents('test.txt')); //"hello"
Works fine. I try to invalidate that call by setting a bad include path:
set_include_path('non-existant-dir');
die(file_get_contents('test.txt')); //still "hello"
...but it still finds the file. Shouldn't set_include_path
mean the call to file_get_contents
looks for test.txt
in a dir called non-existant-dir
, and thus fail?