I had that figured out, but unfortunately that doesn't work either! You see, I have no idea how many directories are in the directory I wish to delete - it could be 10 or 20! I had a function that would delete it if it was a file, and empty it and then delete it if it was a dir. But, apparently you cannot launch a function if you're already in it! So that didn't work either.
MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)