My code
mkdir(\"/some/absolute/path\",0777);
and
mkdir(\"relative/path\", 0777);
is not working, safe mode is
For future references, the problem might come from the possibility that the directory where you're trying to create your new directory doesn't have enough permission.
For instance, your index directory might look like this:
index.php new_dirs_here
if new_dirs_here
doesn't have enough permission then you can't create direcories inside.
To solve this, I'd use the command:
chmod 777 new_dirs_here
I'm not worrying about security now, Just trying to solve the immediate problem. You could of course look up a better permission settings, but the idea is that your new_dirs_here
should have enough permissions.
Then, your mkdir()
dunction should work just fine.
Good luck