PHP Classes

File: testdbase.php

Recommend this page to a friend!
  Classes of zinsou A.A.E.Mose  >  PHP CSV to DBF  >  testdbase.php  >  Download  
File: testdbase.php
Role: Example script
Content type: text/plain
Description: example script
Class: PHP CSV to DBF
Convert CSV files to DBase format
Author: By
Last change:
Date: 4 years ago
Size: 346 bytes
 

Contents

Class file image Download
<?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);
?>

For more information send a message to info at phpclasses dot org.