My code
mkdir(\"/some/absolute/path\",0777);
and
mkdir(\"relative/path\", 0777);
is not working, safe mode is
Are you trying to create those directories recursively, like you would do with mkdir -p
on the command line? If so, specify true
as the third parameter to mkdir.
And just to echo the previous suggestions, PLEASE specify the error messages you are getting. If you are not getting any, use this before your call: error_reporting(-1); // ALL messages
and ini_set('display_errors', 'On');
.