Menu
Is there some kind of php script that would do the following?
1. Open a directory2. Check the pages/files inside of the directory (this is the part I’m unsure of how to script)3. Open up a database – and if a file inside returns 0 zero rows, then add that file to the database.
I could of swore I’ve seen one on the internet somewhere, but I can’t remember where. Something like this would be ideal if all a user had to was create a webpage in a certain directory, and then it would be automatically linked through a database table.
And would something like actually be “slow” if there were 1000 files or so that had to be checked?