How to delete a folder with hidden folders and files

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ViH
Forum Newbie
Posts: 3
Joined: Fri Feb 27, 2009 5:16 am

How to delete a folder with hidden folders and files

Post by ViH »

I saw many functions, but they cannot delete a folder with hidden folders and files.

Indeed, I need to delete a temporary SVN working copy. Can I do it using SVN/exec?
worldnet
Forum Newbie
Posts: 4
Joined: Tue Feb 03, 2009 7:26 pm

Re: How to delete a folder with hidden folders and files

Post by worldnet »

Hi,

You can use a unix command to delete directories and files inside by using rm -rf {directory here} if you want to execute unix commands using php try to look into system(), and exec() functions.
Post Reply