PHP Classes

PHP CSV to DBF: Convert CSV files to DBase format

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 355 This week: 1All time: 6,947 This week: 560Up
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 is available for providing paid consulting. Contact zinsou A.A.E.Moïse .
Classes: 50 packages by
Country: Benin Benin
Age: 34
All time rank: 6781 in Benin Benin
Week rank: 106 Up1 in Benin Benin Equal
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  
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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:355
This week:1
All time:6,947
This week:560Up