![]() |
mass import of jpeg
lets say i have a directory where all jpgs were uploaded to.. how would i do a mass import into the database.? I am really stumped on this one..help would be much appreciated.
thanks |
|
I made a simple example. It will return all visible files (hides files starting with .), including folders. If you want to confirm that the file in fact is an image before doing anything with the result, then you will have to modify it yourself, or let me know.
PHP Code:
|
I would say that it's better that you use
glob :-) |
Like this? The code below is tested with positive result.
PHP Code:
|
Quote:
Thought, he could also use it like this: php Code:
to support other than just .png that you had. Read here: http://www.talkphp.com/absolute-begi...-way-glob.html A great tutorial by Wildhoney. |
| All times are GMT. The time now is 02:03 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0