Re: [PHP] Newbie question on deleting directories using "web Explorer"

2002-01-16 Thread Embrace DaPain

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Web Explorer

2002-01-16 Thread Embrace DaPain

Hello:

Also I am getting this stupid error.  How is that when I see the file and 
directory staring in front of me?



Warning: Unlink failed (No such file or directory) in 
/web/sites/embracedapain/thenameofmysite.com/index.php on line 1049


Thanks

Al

_
Send and receive Hotmail on your mobile device: http://mobile.msn.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]




[PHP] Newbie question on deleting directories using "web Explorer"

2002-01-16 Thread Embrace DaPain




>From: "Embrace DaPain" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


-- 
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]