My code
mkdir(\"/some/absolute/path\",0777);
and
mkdir(\"relative/path\", 0777);
is not working, safe mode is
You're missing quotes around the path name parameter.