Login   Register  
PHP Classes
elePHPant
Icontem

Quick CSV import

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Alexander Skakunov  >  Quick CSV import  >  Download .tar.gz .zip  >  Support forum Support forum (29)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Quick CSV import
Base name: quick_csv_import
Description: Import CSV data into a MySQL database table
Related classes: , , , , , , ,
Version: -
PHP version: -
License: BSD License
All time users: 17488 users
All time rank: 30
Week users: 47 users
Week rank: 27
 

  Author  
Picture of Alexander Skakunov
Name: Alexander Skakunov is available for providing paid consulting. Contact Alexander Skakunov .
Packages: 8 Browse all classes by Alexander Skakunov Browse all classes by
Country: Ukraine Ukraine - PHP jobs in Ukraine
Age: 30
All time rank: 341 in Ukraine Ukraine
Week rank: 28 Up2 in Ukraine Ukraine Down
Innovation award
Innovation award
Nominee: 2x

Winner: 1x


  Detailed description  
This class can be used to import data from CSV (Comma Separated Value) files into a given MySQL database table.

It parses a given CSV file to extract the field names. Then it imports the data into the MySQL database using a LOAD DATA INFILE query to import the data in a much faster way than using SQL INSERT queries.

If necessary, the class can also create the database table using the CSV file headers to retrieve the table field names.

UPDATE: From now you can set the encoding table which is used to parse the file.

  Groups   Screenshots Screenshots   Rate classes User ratings  
  Trackback   Applications   Related links   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Databases Database management, accessing and searching View top rated classes
Group folder image Files and Folders Listing, accessing and manipulating files and folders View top rated classes

  Files folder image Screenshots  
Screenshot of an example at work
File Role Description
Accessible without login Image file csv.png Screen Screenshot of an example at work


  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Sufficient (71.1%)
Sufficient (72.4%)
-
Sufficient (72.4%)
-
-
Not sure (50.0%)
1487
Month:
Not yet rated by the users

  Trackback links  
Link Description
CSV to MySQL Salah satu format data yang masih banyak dipakai adalah Comma Separated Value (CSV)...
parsing csv file with php and inserting into mysql database As some of my posts they usualy start by a question on a forum i write ( you can find them in the about page )...
Quick CSV import with visual mapping Several years ago I created PHP class Quick_CSV_Import to import CSV files to a database table very quickly (LOAD DATA INFILE statement)...
Quick work with data files Familiar programist described how he gave the draft, where it was necessary to speed up the work site, made by fellow Hindus...

  Applications that use this class  
Link Description
Dobrotvor entertaining education
Rival Alert Rival Alert
The endless art my blog (Russian)
developers.org.ua Society of ukrainian developers
I wanna be developer project (Russian)
I want to be free My tech blog
Koodix Your little database
SunnyRentals Feel like home when you travel
zillion (Russian)
devcon.org.ua devcon.org.ua
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
Quick Import with Visual Mapping Example application that imports CSV file to database table with visual mapping of CSV columns to table columns
I want to be free My tech blog

  Files folder image Files  
File Role Description
Plain text file Quick_CSV_import.php Class Quick_CSV_import class
Accessible without login Plain text file Quick_CSV_import_example.php Example Class using example
Accessible without login Plain text file example.csv Data Example source of CSV file

Download all files: quick_csv_import.tar.gz quick_csv_import.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.