Why does changing a directories permissions like this not work?
exec("chmod 755 $directory");
However, when I do the same thing with a file it does work. for instance:
exec("chmod 644 $file");
I really don't want my directory staying at 777 after the script inserts my photos into the directory!
Also is it ok to use exec() rather than chmod()?
Thanks for any ideas!