Re: Unlink Woes

From: Date: Fri, 20 Jul 2001 16:59:12 +0000
Subject: Re: Unlink Woes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-58939@lists.php.net to get a copy of this message
<zerosumzero@yahoo.com> wrote: > on 7/20/01 11:48 AM, Sheridan Saint-Michel at webmaster@foxjet.com wrote: > > > Warning: Unlink failed (Permission denied) in > > /home/www/foxjet/employees/admin.php on line 108 <snip> > I had this error to from unlink, it may be because your server is in "safe > mode" </snip> If you're running PHP as an Apache module it runs as the owner that Apache runs as and can only unlink files owned by that user unless the file you are trying to unlink is world-writable. This is a good thing. Otherwise you could delete any file on the server. If you're running PHP as a CGI then it runs with the privileges of the user who owns the CGI file. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/

« previous php.general (#58939) next »