library foxpro-reader
Read files from FoxPro for DOS
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
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)
dev-master
9999999-dev
Read files from FoxPro for DOS
Sources
Download
The Requires