Hello!
You probably need to change the ownership of the directory.
Your webserver is running as a certain user (ie. apache or www-data).
If that user does not have access to write to
that directory then your mkdir will fail.
So if you want to create a folder in say
/tmp/mystuff/
called
data/ (/tmp/mystuff/data)
then you should change the ownership of "mystuff".
Do this by saying:
chown apache /tmp/mystuff
You can also at the same time change the group by saying:
chown apache.apache /tmp/mystuff
(assuming your webserver runs as user "apache")
I see the php function is:
chown("/tmp/mystuff", "apache");
but I'm not sure that it will work since
you already dont have permission to
change things.
Log in as root.
hope that helps!
bye!