I making a Shopping site, and I have a admin panel I'm making that makes the categories, and items and it all works good, except for delete.
Say I have a category called Snowmobile in qoutes are thr urls, and it was set up as follows..
Snowmobile > Oils & Lubes (site.com/shop/Snowmobile/Oils_Lubes/)
Snowmobile > Oils & Lubes > 2 Cycle (site.com/shop/Snowmobile/Oils_Lubes/2_Cycle/)
Snowmobile > Oils & Lubes > 4 Cycle (site.com/shop/Snowmobile/Oils_Lubes/4_Cycle/)
Snowmobile > Tracks (site.com/shop/Snowmobile/Tracks/)
Snowmobile > Riding Gear (site.com/shop/Snowmobile/Riding_Gear/)
Snowmobile > Riding Gear > Gloves (site.com/shop/Snowmobile/Riding Gear/Gloves)
Snowmobile > Riding Gear > Gloves > Thor (site.com/shop/Snowmobile/Riding Gear/Gloves/Thor)
Now each of those directories has a file I made called index.php
What If I wanted to delete Snowmobile directory and everything in it, see I can't just rmdir I need to go in there delete all the files and directories first.