PHP dbase PECL library to read DBF file in PHP

Sometime we need to read the data from DBF files.  By using PHP library function provided by PHP Extension Community Library (PECL) we can easily read DBF file in our PHP program. To install the dbase PECL library in UBUNTU 16.04 the following procedure can be used.

Installing DBASE PECL extension in UBUNTU 16.04 and PHP 5.6

STEP-1: Execute the below statement by login in UBUNTU through  ROOT user or using SUDO to sudoers users one by one.


wget https://pecl.php.net/get/dbase-5.0.1.tgz
tar -xzf dbase-5.0.1.tgz
cd dbase-5.0.1
phpize
./configure
make
make install

STEP -2 :  Locate the php.ini file ( Usually located at /etc/php/5.6/apache2/php.ini ) and add the following line just below the visible extensions.

extension= dbase.so

Please confirm that there should not be any semicolon(;) preceding the extension. The semicolon is used to make it comment.

STEP -3 : Restart the apache server by issuing the following command

service apache2 restart

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

one × 3 =