I have been trying to work out an issue that compares the files in a folder against the records in a database. If the files are not located in the databse then they are written as option in a list/menu selection box in a form for me to choose from. Anyone able to guide in the right direction?
Not looking for anyone to write the code just give em advise with the proper arguments that I will need to perform this function. Want to build the code myself so I fully understand it.
one way to do this could be read all the files in the folder using opendir/readdir functions, then check each file with the database (search by filename, content, md5 checksum, etc) and if there's no match in the database, add that file to the select box.