biedubbeljoe Posted March 14, 2007 Share Posted March 14, 2007 Hello, I have a problem and don't know where to begin. My default folder is export. This is where all the files comes in, with all kinds of extentions, but with also a lot of sub-folders. I have a text file with all the extentions, I like to delete from the export folder and all the subfolders. 1 extention at 1 row.. Some of these extentions are 'exotic' like exe--fileslack ,so not only the common 3 characters extentions. Is there a way to delete those not wanted files automaticly, without harming the other extentions?? I searched but could not find anything 'nearby' my problem.. Link to comment https://forums.phpfreaks.com/topic/42751-delete-files-recursive-from-extention-list/ Share on other sites More sharing options...
per1os Posted March 14, 2007 Share Posted March 14, 2007 http://us2.php.net/manual/en/ref.dir.php http://us2.php.net/manual/en/class.dir.php http://us2.php.net/manual/en/function.pathinfo.php That should be all you need. --FrosT Link to comment https://forums.phpfreaks.com/topic/42751-delete-files-recursive-from-extention-list/#findComment-207461 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.