I need to compare two arrays and delete files associated with them. Here's the specs:
Array $files is made up of a file list from a directory on my server (~140,000 of them). Array $listingIDs is made up of one row of a database table.
What I need to do is see what filenames from $files appear in $listingIDs. Any that appear in $listingIDs get left alone. Any that don't appear in $listingIDs need to have the files associated with them deleted.
I have figured out everything except this. For some reason I just can't come up with a good way to do it.
Any help would be greatly appreciated.
Thanks in advance.
Matt