A
A
Andrey2018-01-17 14:02:43
PHP
Andrey, 2018-01-17 14:02:43

Call to undefined function dbase_open?

There is a working server, it is on PHP 5.6. I copied the project to myself, launched the test server, but on php 7.1. Everything works, there are no problems with the database, but one function does not work, the data array is not pulled out from the external DBF file. In php.ini it is uncommented, the library lies. I checked the php.ini file with the worker, everything seems to be correct. Where is the dog buried?
And this is how I started the test step by step:

$dir = Yii::getPathOfAlias('webroot.tmp');
  if (file_exists($dir . '/input.DBF')) {
    echo 'Все нормально';
    if (dbase_open($dir . '/input.DBF', 0)) {
                    echo 'База открыта';
                }else {
                    echo 'Ошибка';
                }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Taratin, 2018-01-17
@DronTat

https://www.yinfor.com/2017/04/simple-way-install-...
under windows
https://pecl.php.net/package/dbase/7.0.0beta1/windows

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question