Hi Jan,
I realize your post was over a year ago, but I thought I\'d reply with what I\'m doing to workaround this problem because my solution might help people who continue to struggle with safe mode.... Anyways, your same problem happened to me when my web host just turned on safe mode.
I couldn\'t even simply include or require files in the current directory with:
include(\"file.inc\");
or
include(\"./file.inc\");
But, after trial and error, I found that doing:
include(\"$DOCUMENT_ROOT/file.inc\");
Would NOT work, but:
include($DOCUMENT_ROOT . \"/file.inc\");
would.
So, I wrote a small function that I call from the header of my scripts now that makes it easy:
function inc($f) {
global $DOCUMENT_ROOT;
include($DOCUMENT_ROOT . \"$f\");
}
then I just include files by calling inc() and passing it the path from my document root (with starting slash).
inc(\"/some/deep/file.inc\");
So, no need to mess with \"./\" or \".\" or \"../\" etc.
It\'s simple, but I hope it helps someone!
Ronnie T. Moore
http://www.ronniemoore.com