可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
I have a problem with installing dBase extension in XAMPP with PHP 5.5.11. I added php_dbase.dll
to php/ext folder and added following line to the php.ini
file:
extension=php_dbase.dll
But when I try this code in my script:
dbase_open('file.dbf');
I got an error message:
Call to undefined function dbase_open()'
How to properly install dBase
extension?
回答1:
Try with this link: http://pecl.php.net/package/dbase/5.1.0/windows
In my case i have: XAMPP 1.8.3 [PHP: 5.5.15]
And i use: php_dbase-5.1.0-5.5-ts-vc11-x86.zip
Download the correct version for your PHP windows environmet.
Regards,
回答2:
You need to check in PHP directory is file php_gmp.dll
enable and if it does, then in php.ini
add this string in extensions section:
extension=php_gmp.dll
For more info go here.
回答3:
You need to to check the php_dbase.dll is compatiable with your php version.
here i am using php 5.3.27 ThreadSafe version with vc9 and i downloaded the php_dbase-5.3-svn-20101022-vc9-x86.zip file from http://downloads.php.net/pierre/ and i did same all above you mentioned.
everything is working for me.