This class is meant to extract information from a database file in the DBF format. It can be used for migrating the DBF file to any format you want.
The class is capable of processing the DBF files using only basic PHP functions. So it does not need any PHP extensions to handle the DBF database files.
It reads the names of the DBF fields and the respective values in the DBF rows and stores them in array variables of the class.
An example of usable is included inside the class within the code comments and now has separated example file.
The class and the example updated by Nick Vrtis (thx Nick !!)
for the changes he made, i quoted From the e-mail i recieved :
"I updated it so that it would handle dbt (the note/memo add on file for dbase). I also also separated the initial file load from the decode, so that you can request individual records, either as a simple indexed array, or an association array.
I also expanded the sample code, so that you can enter a directory, and
also a file name into text boxes. This is not a particularly good idea
for a production site, but is useful for testing." |