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.