Hi all,

I'd like to know if it is possible to create a php script that would take the names of image files with its extension of say 10,000 images from out of a folder and place them into a database table in separate rows to use as sample data?

Thank you

Recommended Answers

All 2 Replies

Sure. You can use glob to read the files, and create an insert loop, or sql file with the queries.

Thanks for ypur help

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.