I am getting the following error upon attempt to delete a file (a graphic):
cannot remove `/var/www/html/thumb/blah/000000001.png': Permission denied
Using the following PHP script:
if (@!unlink("$locationPath/$image_name")) {
$msg = exec("rm -rf $locationPath/$image_name 2>&1");
if ($msg) {
/*--------------------------------------------------------------------------------------------------------$
New 10/4/2004: make_thumb() and delete_thumb() are two methods of ActionPerformer class object
that will never generate a View descendant class to display errors, however, they both contain a var$
parsed from $_REQUEST that can be used to reset the value of $action globally and within the form co$
to the original action before you attempted to make (or "unmake") a thumbnail, using that View desce$
class resultant to display errors instead
----------------------------------------------------------------------------------------------------------$
$this->isSuccessful = false;
$this->setErrorArray(array('action' => "Was not able to delete thumbnail \"$locationPath/$image_name\": " $
if (!$willNotRedirect) list($GLOBALS['action'], $_REQUEST['action']) = array($_REQUEST['beforeThumbAction'$
}
I checked the permissions, group and owner of the file and everything checks out just right; the file has permissions of 0644, I am the owner and I being the owner am part of the Apache group, the same group Apache belongs to that, until today, had no problem deleting that same file.
Can someone offer some insight I missed?
Thanx
Phil