I have one folder named SOURCE. In that folder around 10,000 images are there. The folder containing images of various category. For a particular category the image names are stored in a table. Now i want to copy all the images which belongs to particular category from that folder and then copy all those images into another folder.
Say there is a table like this,
id imagename
1 abc_1
2 abc_2
3 abc_3
4 abc_4
5 abc_5
All those images are in the same source folder. I need to run a query to filter this category images and copy all those to another folder. In that particular category i have around 1500 Images. I am working in PHP & MYSQL Environment. How to do this? Hope my question is clear.
Thanks in Advance !!
To clarify after reading all the comments, this is what I understand: You would like to move specific image files on the file system to another folder, filtering those files by the imageNames in the database.