2017 © Pedro Peláez
 

library foxpro-reader

Read files from FoxPro for DOS

image

zdenekgebauer/foxpro-reader

Read files from FoxPro for DOS

  • Tuesday, January 14, 2014
  • by zdenekgebauer
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

FoxProReader

FoxProReader read data from *.dbf and *.fpt from DOS version of FoxPro. Doesn't work for Visual FoxPro files., (*1)

Usage

require '../src/foxpro-reader.php';

try {
    $dbf = new FoxProReader('./TEST26.DBF');
    $recordsTotal = $dbf->numRecords();
    for ($i=0; $i<=$recordsTotal-1; $i++) {
        $row = $dbf->getRecord($i, TRUE);
        var_dump($row);
    }
    unset($dbf);
} catch (Exception $e) {
    echo $e->getMessage();
}

NOTE: Class read both files (dbf and fpt) into memory, so this could take a lot of memory for large files., (*2)

The Versions

14/01 2014

dev-master

9999999-dev

Read files from FoxPro for DOS

  Sources   Download

The Requires

  • php >=5.3.0