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?
set_include_path(). Comment out any "php_value include_path" type lines in your Apache conf file, and you should be able to set it now in your php code.