PHP script for database populating

Hi All,

I am trying to find information on creating a script that reads a portion of a network drive and automatically populates a database with the file-names of the drive’s contents (images).

While I’ve used php often enough before, I’m not exactly sure what books/websites I should read to get a sense of how this works.
Can anyone point me in the right direction or provide me with the technical vocabulary of what I am trying to do?

Thanks

I would use readdir and use a while loop to populate