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
Related Q & A:
- How can I send a .mht file as blat attachment?Best solution by Stack Overflow
- In Visual Studio 2012 or 2013, how can I register a DLL file on Windows 7 64-bit computer using a Custom Action command?Best solution by Stack Overflow
- How can I burn a .rmvb file onto a DVD for viewing on a regular DVD player?Best solution by Yahoo! Answers
- How can I open a vcf file?Best solution by file.org
- How can I open a jpeg file?Best solution by answers.microsoft.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.