【发布时间】:2017-05-24 04:02:01
【问题描述】:
我正在尝试使用 dbase_open 打开我的 dbf 文件,但遇到错误(调用未定义函数 dbase_open() 错误)
我已经在 php.ini 中取消了 extension=php_gmp.dll 的注释。我已经尝试根据这个论坛Installing dBase extension in XAMPP下载包http://pecl.php.net/package/dbase/5.1.0/windows 而且我仍然没有运气工作....
PHP 版本:5.3
文本编辑器:Netbeans
请帮我解决这个问题? :(
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'.");
【问题讨论】:
-
php_gmp.dll文件位于哪个目录? -
C:\xampp\php\ext 我在文件夹中有.dll