images database from folder

Posted on 2002-05-09
Last Modified: 2012-06-27

I'm currently re building a website using php, and I seek a aolution to build a database of images from a folder.

I would need to define a folder and have an application parsing the folder and include all images in a database with image name, heigth and weight.

Anybody know how to accomplish that? Or does anybody would be able top build such application for a fee?

Stephane Beladaci
Muscle Networks, Corp.
Question by:musclenetworks

Expert Comment

ID: 6998982
check this ..

lots of free scripts availabe for image gallaries n all ...see is there any suits ur need.

and still want to create urseelf then its better you dont store image in Database instead store on the server and just store the path in the database , bcoz MySQL is not good in handling images .

And if you wann to go for devlopment Please contact me at

Hope this Helps..



Author Comment

ID: 6999044

Using a third party application to build gallery would not allow me to integrate these gallery on my php application.

Storing the path, file name, height and weigth would be really enough. These data will be then used by my php application to build the gallery on the fly. In addition, I use a specific image protection which display image in an applet ( None existing application will allow me to integrate this.

What I plan to do is to build a database containing the varibles (image path, name, heigth, weight), and then use a dynamic php template with Dreamweaver MX.

I need an application that will parse the image folder, build a table for each sub-folder, and add data for all images found in all subfolder.


Expert Comment

ID: 6999100
i see..

then get a devloper who can do this for U.

or even he can modify the existing free imgae galleries according to your need.

if you are intrested in devlopment... can mail me.


Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

LVL 40

Expert Comment

ID: 7008125
You can use something like ThumbsPlus by Cerious Software

I use it to create thumbnail databases. The DB can be MySQL and you can retrieve all the details about the image from the DB.

LVL 40

Expert Comment

ID: 7008126
And just for a laugh, did you mean width? <grin>

Accepted Solution

Aikema earned 50 total points
ID: 7019149
Look at the directory functions page in the PHP manual and you'll see functions that will give you a directory listing that you can get all the filenames from (opendir and readdir to be specific).

Then, on the image functions page in the manual you should find a function called GetImageSize that will return an array with, among other things, the dimensions of the image.

Expert Comment

ID: 13149630
>And just for a laugh, did you mean width? <grin>

Haha I got what you said!

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
echo button 13 47
mysql Encryption with PHP 8 48
.htaccess file settings 4 35
php documentation 4 21
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now