PHP Recursive Delete Empty Folders

They have: 218 posts

Joined: Apr 2001

I'm looking for a function that will recursively delete all folders within a subdirectory that are empty.

Thanks,

Tony

s0da's picture

He has: 157 posts

Joined: Mar 2004

oh man... my stomach hurts. Sad

stomach still hurts... oh and please test before using.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.