Forum Moderators: coopster
hopefully there is an easy answer to this.
I'm trying to get php to create a directory specific for each user when they register on my website. I am using the mkdir() function for this:
mkdir("/var/www/mysite/images/houses/uploads/userid", 0777);
For some reason, the directory is created but not with the CHMOD of 777. Instead, it is created with CHMOD 755. This does not give the user rights to "write" in the directory.
Am I doing something wrong?
Thanks in advance for your help!
Wes
Good luck!