Newbie question on deleting directories using "web Explorer"

From: Date: Wed, 16 Jan 2002 18:01:32 +0000
Subject: Newbie question on deleting directories using "web Explorer"
Groups: php.general 
Request: Send a blank email to php-general+get-80772@lists.php.net to get a copy of this message
From: "Embrace DaPain" <phpractice@hotmail.com> To: php-general@lists.php.net Subject: Re: [PHP] Newbie question on deleting directories using "web Explorer" Date: Wed, 16 Jan 2002 11:47:27 -0500 I am trying to delete files using "web explorer" THere is a section in the code that states the following... Can I include a shell script into it? Or it is neccessary. I know I have permissions,but I might be wrong. If someone could help me I would appreciate it. Thanks Al case "del": ############### The user has comfirmed the deletion if ($confirm) { ############### Object is a directory if(is_dir($basedir.$file)) {
                              // I thought this part would work
                              //but it didn't budge by infusing a shell
#system(rmdir -rf $basedir.$file); rmdir($basedir.$file); } ############### Object is a file else { unlink($basedir.$file); } $lastaction = "Deleted $file"; html_header(); displaydir(); } _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- 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
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

« previous php.general (#80772) next »