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 9077493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:22:47+00:00 2026-06-16T19:22:47+00:00

I have an old table with thousands of posts. Each post have 0-4 link

  • 0

I have an old table with thousands of posts. Each post have 0-4 link to pictures, about a product. Now I have to use the data in the old table to crate a new, and to move the pictures into different folders. I also have to create thumbnails for every picture.

This task sound me a big job, with a long runtime. Should I write the code for this only in a single .php file, than just let the server to run it, or there is a special technique for this. All in all how can you work with huge tables and tons of pics via php?

  • 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-16T19:22:48+00:00Added an answer on June 16, 2026 at 7:22 pm

    Finally I found out how can I solve it so I share the technique I used.

    I wrote a code in PHP that manipulates the database, moves the pictures and creates thumbnails for each post (row in the table). Because of the big amount of posts, I wasn’t able to run this correctly because the max_execution_time was set to 30 and of course the runtime was much bigger, so I divided the task to 30 sec parts. I added a new column (where I store if a row has processed) to the table, and always only selected the rows that weren’t processed before. After all, I created a cron job that runs this PHP file in every minute.

    I could also used the command line, because there aren’t time limit, but I didn’t have SSH access.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some data from an old table, with a lot of columns that
We have an application which stores its data in SQL Server. Each table has
Hi I do have an old table and new table with same index/data. TABLE1
I have old table which the data stored as tbl_id tbl_data -------------------- 1 1,2,3,4,5,6
I have two databases: old and new. Both have a comments table. There are
MSSQL database. I have issue to create database using old databases data. Old database
Example: i am having old table columns format (id , name ,city) but now
We have an audit table in our database, and on update the old and
We have an old SQL table that was used by SQL Server 2000 for
In my table view I have 4 UIButton s, 2 in each row of

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.