Re: [PHP] Unlink Woes
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 [EMAIL PROTECTED] To: 'Sheridan Saint-Michel' [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] Sent: Friday, July 20, 2001 1:04 PM To: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] To: Sheridan Saint-Michel [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, July 20, 2001 11:25 AM Subject: Re: [PHP] Unlink Woes on 7/20/01 11:48 AM, Sheridan Saint-Michel at [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Unlink Woes
on 7/20/01 11:48 AM, Sheridan Saint-Michel at [EMAIL PROTECTED] 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 -- [EMAIL PROTECTED] http://futurebird.diaryland.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Unlink Woes
[EMAIL PROTECTED] wrote: on 7/20/01 11:48 AM, Sheridan Saint-Michel at [EMAIL PROTECTED] 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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Unlink Woes
I know... that's why I included all the info about how I chmod'ed both the files and directories 777 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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] To: Sheridan Saint-Michel [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, July 20, 2001 11:25 AM Subject: Re: [PHP] Unlink Woes on 7/20/01 11:48 AM, Sheridan Saint-Michel at [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Unlink Woes
Run the function phpinfo(); -- Julio Nobrega. This is a man's world. But it would be nothing. It would be nothing without a woman or a girl. Sheridan Saint-Michel [EMAIL PROTECTED] wrote in message 02d101c1113d$f7a5ccc0$[EMAIL PROTECTED]">news:02d101c1113d$f7a5ccc0$[EMAIL PROTECTED]... How can I find out if my server is in Safe mode? Do I have to call my Host and ask them? Sheridan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]