I had some problems with an upload script i was working on. This has resulted in what has been uploaded undeletable:S
File that havebeen upload have there chmod set to 644. I tried changing this in the delete script but i am getting an error
chmod(): Operation not permitted
So i tried to delete via my ftp prog and get the same problem.
Does anyone know of a solution??
here's the delete script i have
$filepath = "../../media/portfolio/".$clID."/";
if ($handle = opendir($filepath)) {
while (false !== ($file1 = readdir($handle))) {
if ($file1 != "." && $file1 != "..") {
$old = umask(0);
chmod($filepath.$file1, 0755);
$del = unlink($filepath.$file1);
umask($old);
}
}
closedir($handle);
$del2 = rmdir("../../media/portfolio/".$clID);
}
thanks for any help