Import from csv file to MySQL
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Import from csv file to MySQL

From: Smitro <gnews@mailoz.com>
Date: Wed Sep 21 2005 - 04:19:24 CEST

Hi,

I'm in the middle of writing a script to import a csv file into mySQL
(as apart of a bigger project)

I need to know what are the best steps to go from $_FILES to file().

Once the file is read into an array I should be right. I don't want to
keep a copy of the file uploaded either, as once it is imported I will
have no use for it.

I'm not sure, do I copy it store it then use it or is there a faster
way? Will the temp file be deleted or do I have to delete it?
Received on Mon Oct 24 02:10:08 2005