Re: PHP unlink Permission Error

From: Date: Tue, 13 Jan 2009 16:38:30 +0000
Subject: Re: PHP unlink Permission Error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-286231@lists.php.net to get a copy of this message
On Tue, 2009-01-13 at 15:46 +0000, ceo@l-i-e.com wrote: > Not only do you need to check the return value of chmod to see if it worked, but also, I > *think*: > > > > The file withing the directory can have entirely different permissions, and making the > directory world writable won't help that, I don't think... > > > > I could be wrong, and a 000 file in a 777 dir might be unlink-able. You can test for yourself > in a shell as fast as I can. :-) > > > On *nix systems, I believe you only need write permissions to the directory in order to delete files. Ash www.ashleysheridan.co.uk

« previous php.general (#286231) next »