I'm trying to work my dbf file to get to open using dbase_open and I'm encountering an error (Call to undefined function dbase_open() error)
I've already uncommented the extension=php_gmp.dll in php.ini. I've tried to downloading the package http://pecl.php.net/package/dbase/5.1.0/windows according to this forum Installing dBase extension in XAMPP and I'm still having no luck with working on it....
Php version: 5.3
Text Editor: Netbeans
Please help me with this? :(
include 'config.php';
$tbl = "CC";
// Path to dbase file
$db_path = "C:\xampp\htdocs\DbftoSQL\something.DBF";
// Open dbase file
$dbh = dbase_open($db_path, 0)
or die("Error! Could not open dbase database file '$db_path'.");
You can check this answers and try out. How to solve "Call to undefined function dbase_open() " error in windows
And Try to restart Apache service if any changes for php.ini file.It will work.
download (refer below link) php_dbase.dll file according to your system.
Link - https://github.com/nufue/pecl-dbase-windows
add downloaded 'php_dbase.dll' file to in 'C:\\xampp\\php\\ext'
open php.ini file
search 'extension=', you will find many extension there. add below line after all extension list. 'extension=php_dbase.dll' (without quote)(no issue if add this line at the end of file.
Restart apache server. it will start working in local - windows system.
Note:- update file name with 'php_dbase.dll' if file name is different.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.