Read dbase in PHP

Asked

Viewed 375 times

2

In the company has a software in Clipper, which saves the information in dbase (bank data.dbf), now arose the need to integrate it with PHP but I can not use the functions dbase. I already enabled in php.ini a extension=dbase.dll, downloaded the dll from the following address link and put it in the ext folder. But it still gives the following error: Call to undefined function dbase_open().

I am using Xampp with PHP version 5.5.11.

Some help ?

  • Which version of php are you using? thred safe or not?

  • I am using Xampp with PHP version 5.5.11.

  • I did a test here on php5.4, downloaded the file played the dll in ext folder, added the line extension=php_dbase in php info, restart the server and run(view the image. This version of php/xampp is 32bits or 64bits?

1 answer

3


The version of the extension you downloaded should be incompatible with the installed version of PHP. The extension must be thread-safe and your PHP version does not, or vice versa, which causes the error mentioned by you:

inserir a descrição da imagem aqui

Perform the phpinfo and check whether your version is or not thread-safe:

inserir a descrição da imagem aqui

According to the version and architecture, download the correct extension of link mentioned in the question.

If you’ve already put the line extension=php_dbase.dll in the archive php.ini, just restart the server and try again:

inserir a descrição da imagem aqui

  • 1

    Strange that in the question he wrote extension=dbase.dll instead of extension=php_dbase.dll, can be one of the problems too

  • 1

    Both answers complemented the solution. Totally grateful :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.