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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:13:52+00:00 2026-05-13T21:13:52+00:00

Here is the scenario: I get an CSV file, which has data1, data2, data3,

  • 0

Here is the scenario:

  1. I get an CSV file, which has data1, data2, data3, data4(Add, Update, Delete), data5 and there are like 90000 entries in the CSV file, first line gives description of column like

    DATE AGE NAME STATUS(ADD, UPDATE, DELETE) TIME

    1 01/02 23 Phil A 23:00:00
    2 02/03 32 Erick D 12:00:00
    3 09/07 36 Timmy U 11:00:00

  2. I need to parse through this CSV file and store data into the database and depending upon STATUS, I need to add, update or delete information from the database. I am doing so using PDO and prepared statements and bind parameters.

Few Questions, Q2 I have asked which would add meat to this summary and would be useful.

  1. After doing desired operations on database like ADD, DELETE and UPDATE depending upon the STATUS table, I need to get current snapshot of the MySQL Table(or database but am more concerned about Table right now) and send it to an FTP Server from PHP.

My Issues:

  1. I am trying to update content of the database depending on STATUS but somehow it is not been updated, this issue has been discussed in Q2, listed above.

  2. Also I want to get current snapshot or state of MySQL Table which I need to export to an FTP Server and I am not sure of what approach do I need to take to achieve my goal.

Hope question is clear here and would get some useful information.

Thanks.

Update: I have tried to look for other alternatives regarding the approach to get snapshot of Current State of Database, in my case MySQL, but have not found any which can be used. Google is giving me wierd answers and getting me into wrong direction, Is it really that hard to get snapshot of current database state and send it to FTP Server using 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-05-13T21:13:53+00:00Added an answer on May 13, 2026 at 9:13 pm

    You can create a snapshot of a MySQL DB or table/group of tables using the mysqldump command.

    That will give you a text file. You will want to compress the file if your DB is reasonably large. On Linux I use the gzip command.

    You can then FTP that file to the remote server. Depending on your OS and PHP configuration, you might be able to execute scripted OS command to perform the FTP. What OS is this running on? Does your PHP config allow you to execute OS commands?

    EDIT:

    Since you can’t run OS level commands, consider doing a SELECT * from the table in PHP, writing the results to a file, then using the built-in PHP FTP commands to transfer that file to your remote server.

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

Sidebar

Related Questions

the scenario needs to run like this: client uploads CSV file which then dynamically
Here's the scenario, I want to get Data from the Service to Activity Whenever
That's a horrible title, sorry. Here's the scenario: WCF Service uses LINQ to get
Here is the scenario. I have an file outside of my Grails application that
I am facing a scenario here. I have a main class which initializes a
Here is the scenario: Client sends a request to WCF Server to get product
Here is my scenario: I have a static object which will connect to a
Tackling a strange scenario here. We use a proprietary workstation management application which uses
So here's the scenario: DDD states that you use a repository to get the
Here's the scenario, i have a website, which in a single HTTP request (HTTP

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.