php - What is the fastest way to check if files in a folder exist in my mysql database? -


i want scan folder of effects , check if each file listed row in mysql database of effects, , if isn't show un-tracked file. know efficient method achieve php? thank much.

i think there's 1 way: glob directory, prepare 2 statements (a check , update) using pdo or mysqli , loop through files.

if need on regular basis, should move tracked files different place track / check them.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -