Does anyone understand how this could happen?
Here's what I did:
$path = getcwd();
mkdir ($path."/NewDirectory", 0666);
But, when I look at the directory in the browser ... get the permission denied note. Had a look in cuteFTP to see what the built-in CHMOD function says the permission is 0644 and not 0666, as I put in mkdir()!!
Tried 0777 and got 0755 !! There seems to be a pattern.
Also, to top that I can't access the folder in cute at all (can't change permissions, can't look inside).
So, just to find out what's happening, I used another script to (successfully) remove the folder:
$path = getcwd();
rmdir($path."/NewDirectory");
It seems that:
1) mkdir() creates a folder, but with 'lesser' permissions !!
2) Same folder can only be deleted with rmdir() !!
Anybody really understand permissions?
Cheers,
Paul.