Is there a way in PHP to record the extensions of all the files in a specified directory into a MySQL database?
scoop up all of the files into an array using [man]opendir[/man] and [man]readdir[/man] (or [man]scandir[/man] if you have PHP5) then loop thru the array and do an INSERT query on each iteration.