Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8826365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:07:03+00:00 2026-06-14T07:07:03+00:00

I have one folder named SOURCE. In that folder around 10,000 images are there.

  • 0

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 !!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T07:07:04+00:00Added an answer on June 14, 2026 at 7:07 am

    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.

    1. Retrieve the imageNames from the category table that you need (select imageNames from myCategory) and store the result set in a collection.
    2. Iterate over the collection
      1. using the known directory structure match the file name and copy it over to the new directory. (take a look at http://php.net/manual/en/function.copy.php)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose i have one folder and inside that another two files are there .
I have created one library project in iphone and my images folder is present
I have a folder with a few background images (one.jpg, two.jpg, three.jpg) , and
I have one temp folder C:\Mydata inside that i have .csv files with name
At work we use git as source control. In one folder, there is a
I have one folder synced between two computers (using one of online sync tools).
I have one folder with about 1000 files and I want to group them
I have one created one folder called MYFOLDER inside my folder in have one
I have one solution with 3 folders (Forms, Notices, Reports). In the Notice folder
should i after i have created a svn repo, import one project folder into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.