My code
mkdir(\"/some/absolute/path\",0777);
and
mkdir(\"relative/path\", 0777);
is not working, safe mode is
Do all of the parent directories exist?
If not, you'll need to enable recursion (assuming PHP5 here):
mkdir('/path/to/your/dir',0777,true);
EDIT: Didn't see the hidden comment saying that every directory from var
downward was set to world-writable, so I'm betting the directory path exists and the above won't be helpful. Sorry!