PHP Classes

PHP CSV to DBF: Convert CSV files to DBase format

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 356 All time: 6,947 This week: 55Up
Version License PHP version Categories
php-csv-to-dbf 1.0.0The PHP License5.4PHP 5, Databases, Files and Folders
Description 

Author

This package can convert CSV files to DBase format.

It can manipulate Dbase files using the dbase extension to insert one or more records.

The package can also read the records of a CSV file and create a Dbase file with the same information.

Innovation Award
PHP Programming Innovation award nominee
October 2017
Number 7
This package can convert CSV files to DBase format.

It can manipulate Dbase files using the dbase extension to insert one or more records,

The package can also read the records of a CSV file and create a Dbase file with the same information.

Manuel Lemos
Picture of zinsou A.A.E.Moïse
  Performance   Level  
Name: zinsou A.A.E.Moïse <contact>
Classes: 50 packages by
Country: Benin Benin
Innovation award
Innovation award
Nominee: 23x

Winner: 2x

Recommendations

csv to dbf
i want to convert some csv to dbf file using php

Example

<?php
require_once('CharSVtoDbf.php');
$db = dbase_open('dbase.dbf', 2);
   
    if (
$db) {
 
$record_numbers = dbase_numrecords($db);
  for (
$i = 1; $i <= $record_numbers; $i++) {
   
$rows[] =array_map('trim', dbase_get_record_with_names($db, $i));
  
  }
  echo
'<pre>';
 
var_dump($rows);
  echo
'</pre>';
}
 
dbase_close($db);
?>


  Files folder image Files (4)  
File Role Description
Plain text file CharSVtoDbf.php Class class source
Accessible without login Plain text file csv.txt Data auxilliary data for example purpose
Accessible without login Image file DBASE_DATATYPES.JPG Data DBASE_DATATYPES
Accessible without login Plain text file testdbase.php Example example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:356
This week:0
All time:6,947
This week:55Up