Introduction
This is an extension for PHP it adds the capability to access dBase files. This started out as the same extension included
with PHP5. This version has been modified and has not yet been accepted by php.net as official changes. The hope is that this extension will
contain many great features. If you have any feedback or requests you can either fill out the contact form on this site, be sure to
select PHP-DBASE Extension from the drop down menu. A close watch will also be kept on bugs.php.net so you may also submit bug reports there.
Releases
Field Types
| Field | Name | Format | Description |
| C | String | String | You must declare a length. When retrieving data, the string will be right-padded with spaces to fit the declared length. |
| D | Date | YYYYMMDD (String) | The field length is limited to 8 |
| F | Float | Float | Support for this type of field was added in PHP 5.2.0 |
| I | Integer | Number | Not sure this is a real feild this is the only place I have seen it php-dbase has full support of it. |
| L | Boolean | T or Y for TRUE, F or N for FALSE | Stored and returned as an integer (1 or 0) |
| M | Memo | String | This type is not supported by PHP, such field will be ignored |
| N | Number | Number | You must declare a length and a precision (the number of digits after the decimal point) |
| @ | Timestamp | Number | Header Support Only |
| T | Timestamp | Number | Header Support Only |
| 2 | INT(2) | Number | Header Support Only |
| 4 | INT(4) | Number | Header Support Only |
| 7 | INT(7) | Number | Header Support Only |
| 8 | INT(8) | Number | Header Support Only |
| B | Binary | String | Header Support Only |
| G | General | String | Header Support Only |
| P | Picture | String | Header Support Only |
| V | Variable | String | Header Support Only |
| + | Autoincrement | Number | No Support |
| 0 | ??? | Number | No Support |
Functions
Change Log
- Feb 13, 2008
- Retraction of Timestamp feature, values are garbage.
- Moved with names feature to dbase_get_records.
- Depreciation of dbase_get_record_with_names.
- Stops writing to files with unknown fields.
- Feb 12, 2008
- Terminate on unknown field: Now files should load regardless of the fields used.
- Timestamp reading from files added.
- More field types added for the display of headers.