Forum Moderators: coopster & phranque

Message Too Old, No Replies

Deleting a web page/directory

         

lisad

3:43 pm on Aug 13, 2003 (gmt 0)

10+ Year Member



I also have a problem with deleting. If I try to delete 1 line in the database, the whole file gets wiped out. I've found web sites that have information on that and I've tried to use their methods, but they didn't work.

And if I try to delete a directory using

rmdir -d ("/public_html/$ename/");

it doesn't delete the directory.. anyone have a solution for that?

Thanks so much!

jatar_k

10:21 pm on Aug 15, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



It can only remove the dir if it is empty you have to unlink [perldoc.com] any files in the dir first

Fischerlaender

11:09 am on Aug 28, 2003 (gmt 0)

10+ Year Member



What about using
system("rm -rf directory/");

?