Hi, i am coding in php on a unix server and in my script i want to create a directory. I am doing it successfully with these commands:
$oldumask = umask(0);
mkdir("$newdirec", 0777);
umask($oldumask);
The directory gets created but the CHMOD of the directory is not 777, i think its like 522
(read write, read, read)
Also used these commands for certain files:
chmod("$newdirec/master.css",0777);
chmod("$newdirec/configfile.inc",0777);
Same thing is happening, its 522 not 777
Why could this be happening????
Thanks for any help