php-dbase

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
FileDescriptionDate
ubuntu-704-dbase-r2.tar.bz2 Ubuntu 7.04 Module Feb 13, 2008
php5-dbase-r2.tar.bz2 Source Code Feb 13, 2008
ubuntu-704-dbase-r1.tar.bz2 Ubuntu 7.04 Module Feb 12, 2008
php5-dbase-r1.tar.bz2 Source Code Feb 12, 2008

Field Types
FieldNameFormatDescription
CStringStringYou must declare a length. When retrieving data, the string will be right-padded with spaces to fit the declared length.
DDateYYYYMMDD (String)The field length is limited to 8
FFloatFloatSupport for this type of field was added in PHP 5.2.0
IIntegerNumberNot sure this is a real feild this is the only place I have seen it php-dbase has full support of it.
LBooleanT or Y for TRUE, F or N for FALSEStored and returned as an integer (1 or 0)
MMemoStringThis type is not supported by PHP, such field will be ignored
NNumberNumberYou must declare a length and a precision (the number of digits after the decimal point)
@TimestampNumberHeader Support Only
TTimestampNumberHeader Support Only
2INT(2)NumberHeader Support Only
4INT(4)NumberHeader Support Only
7INT(7)NumberHeader Support Only
8INT(8)NumberHeader Support Only
BBinaryStringHeader Support Only
GGeneralStringHeader Support Only
PPictureStringHeader Support Only
VVariableStringHeader Support Only
+AutoincrementNumberNo Support
0???NumberNo 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.