Re: Unlink Woes

From: Date: Mon, 23 Jul 2001 13:48:27 +0000
Subject: Re: Unlink Woes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59191@lists.php.net to get a copy of this message
Ok that didn't give any output... and I checked in phpinfo() and found safe_mode off. Any other ideas? Sheridan ----- Original Message ----- From: Jack Dempsey <dabigdemp@hotmail.com> To: 'Sheridan Saint-Michel' <webmaster@foxjet.com> Sent: Friday, July 20, 2001 12:12 PM Subject: RE: [PHP] Unlink Woes > <? > if(get_cfg_var('safe_mode')){ > echo "running in safe mode"; > } > ?> > > -----Original Message----- > From: Sheridan Saint-Michel [mailto:webmaster@foxjet.com] > Sent: Friday, July 20, 2001 1:04 PM > To: zerosumzero@yahoo.com > Cc: php-general > Subject: Re: [PHP] Unlink Woes > > How can I find out if my server is in Safe mode? Do I have to call my > Host > and ask them? > > Sheridan > > ----- Original Message ----- > From: <zerosumzero@yahoo.com> > To: Sheridan Saint-Michel <webmaster@foxjet.com>; > <php-general@lists.php.net> > Sent: Friday, July 20, 2001 11:25 AM > Subject: Re: [PHP] Unlink Woes > > > > 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 > > > > > > Here's the code > > > > > > if($submit == "Delete") > > > { > > > for ($j = 0; $j < $numfiles; $j++) > > > { > > > $checkname = $files[$j]; > > > if (${$checkname} = "on") > > > { > > > $temp = $pwd . $files[$j]; > > > unlink($temp); > > > } > > > } > > > } > > > > > > > > I had this error to from unlink, it may be because your server is in > "safe > > mode" > > > > Susan > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#59191) next »