script to insert all files from directory into db
Posted: Wed Jul 09, 2008 8:41 am
Hello all,
I've been looking around for a while at scandir and other php functions for a way to insert all files in a given directory into a table and can't seem to get it. The files would have a sequential order like 1.jpg, 2.jpg, 3.jpg, etc.
Can someone give a link on a tutorial or, better yet, the script on how to do it?
Thanks!
phpuppy
PHP 5.2.5 - MySQL 5.0.45
I've been looking around for a while at scandir and other php functions for a way to insert all files in a given directory into a table and can't seem to get it. The files would have a sequential order like 1.jpg, 2.jpg, 3.jpg, etc.
Can someone give a link on a tutorial or, better yet, the script on how to do it?
Thanks!
phpuppy
PHP 5.2.5 - MySQL 5.0.45