How to merge multiple CSV files into a single CSV file?

PHP and MySQL: Can I break a CSV file into several files during upload?

  • I have a PHP script to upload a CSV file into a MySQL database but it usually does not work for files with more than like 10,000 lines or of x file size. (not sure what size). Anyways, I have several files every week I need to upload that are more than 10,000 lines so is there anyway I can check the number of lines and if over 10,000 then it breaks the file into two seperate, or three seperate files during upload, then uploads them each one at a time?

  • Answer:

    sure anything is possible. You might try this first though: ini_set("upload_max_filesize", "50M");

Nicholas J at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.