Hello,
I need your help. I have news publish system, and it makes able to upload some files. But I have a problem, when I delete some certain news (eg. news_id = 3456) I shoud also delete all of files, which were uploaded with this news. So my situation looks like this:
- I have structure of directories which looks like this: "/somedir/somedir2/pic"
- I want to search files in all subdirs of dir "/somedir"
- Files shoud have the name starts with some certain name, like 3456_
- All correct files shoud be deleted.
Anyone know how to do this ?? It shoud work on win & linux.
I will be appreciate for your help.
Happy New Year.
Marek L.