I am having trouble changing the permissions on directories even though I'm the owner, any help?
Here's the snippet of code:
if ($handle=opendir('./photo')) {
/echo "Dirctory handle: $handle\n";/
/echo "Files:\n";/
$i=0;
while (false !==($files=readdir($handle))) {
/* .DS_Store appears in MacOS X directory structues */
if ($files != "." && $files != ".." && $files != ".DS_Store" && $files != "info.php") {
/* echo "$files\n"; */
$filearray[$i++]=$files;
chmod("./photo/".$files,0755);
}
}
closedir($handle);
}
Thanks
flipmo