Re: emergency: Need to see how I can delete these folders??!!!!

From: Date: Thu, 17 Jan 2002 05:04:52 +0000
Subject: Re: emergency: Need to see how I can delete these folders??!!!!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-80877@lists.php.net to get a copy of this message
Sorry if I miss something, but have you posted this message on this list before? I don't understand a thing from your e-mail... Bogdan Al Fujii wrote: > Sorry for being a pain. However I need to see if someone can answer my > question..... > > >> > >>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(); > >> } > >> > > _________________________________________________________________ > Send and receive Hotmail on your mobile device: > http://mobile.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

« previous php.general (#80877) next »