PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am trying to compare a directory that contains picture files with a mysql column that contains the url to these picture files and if there are any picture files in that directory that are not in the database i would like them unlinked. So far i can print out the results of both the column and the folder but im not sure where to go next.
When you find the files in the dir, then you could search your db after the same file, and if it isn't in the db then delete the file.... or you could put your results in a array and then compare the results