Hello,
I have a website that is hosting mp3's. They are all named and the path is stored in mysql such as 1234.mp3.
I am wanting to do a little cleanup and write a script that will check every mp3 file on the site, and then verify through a loop that the song exists in the DB. If not, I want to delete it.
I know how to use unlink but am not sure how to setup a loop that will get the filename of every mp3 within a certain directory.
Any help?
Thanks.