Hello,
Heres what I need to happen:
I have a file uploader. It uploads images to the specified dir just fine. The following is the code:
$pathname = “uploads/”.$cname; //$cname = the name of the facility
if (is_dir($pathname)) {
//return true;
}else{
$oldumask = umask(0);
mkdir(“uploads/”.$cname, 0777);
umask($oldumask);
}
Heres what happens:
First a list of Doctors is displayed.
Second the admin person chooses which doctors office he wants to upload the file to.
Third - After the admin clicks on the dr’s link it checks to see if there is a dir already created for that dr’s office. If not then it creates the dir and uploads the specified file, which is working, but Im getting an error stating permissions denied. So the dir with the drs office name is being created but the file that is being uploaded is put into the “uploads” dir not the drs dir. I thought the ‘0777’ set the permissions of the new dir to be fully writable? its not!
Any help would be great so my head doesnt explode!
Thanks
liquid