note 86223 rejected from function.unlink by danbrown

From: Date: Wed, 08 Oct 2008 17:46:06 +0000
Subject: note 86223 rejected from function.unlink by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-145175@lists.php.net to get a copy of this message
Note Submitter: fritz at hoseanetworks dot com ---- I'm having the opposite problem with permissions from a lot of other people here. In my case, I get a successful delete when I believe it should fail. Apache is running as user "apache". The files are owned by user "root". The files all have read only permissions "444". Yet, unlink deletes the file successfully. I don't understand it. Can anyone help me with this one? Here is the link of code: $result = ($item_type == "file") ? unlink($filename) : rmdir($filename); Here is output from ps: apache 1334 0.1 1.5 39272 16328 ? S 07:25 0:04 /usr/sbin/httpd

« previous php.notes (#145175) next »