dongyihao1099 2014-03-17 08:02
浏览 150

dbase_open()无法打开.dbf文件

I've installed the dbase php extension in my ubuntu server. And I see the dbase_open(...) doesn't show any error but though I provide an existing .dbf file path with mode (0 or 2) it can't open the file. No error but the returned link pointer is false. Can anyone tellme what will be the possible causes of not opening the .dbf file?

I've installed the dbase extension using this command: [pecl install channel://pecl.php.net/get/dbase]

I've added the dbase.so extension in php.ini, restarted the server and I can see the dbase information in phpinfo().

Here are few basic information:

  1. PHP Version 5.3.10-1
  2. ubuntu3.10
  3. Apache 2.0
  4. Handler dbase extension version: 5.1.0

Any help will be appreciated.

  • 写回答

1条回答 默认 最新

  • dongshendie8849 2014-12-31 09:29
    关注

    Was *.dbf file created from visual foxpro? If so, try the following:

    COPY TO filename.dbf TYPE FOX2X
    

    I was having similar problem with you and then I tried to read dbase_open function documentation again, I found notes from jmertic at ncscredit dot com that emphasized about that thing.

    As additional information related with FOX2X. FOX2X format creates a new table that can be opened in earlier versions of FoxPro (versions 2.0, 2.5, and 2.6). Other than that, you should consider differences between latest version visual foxpro field type and foxpro 2.x field type. You may read this documentation.

    评论

报告相同问题?

悬赏问题

  • ¥20 java在应用程序里获取不到扬声器设备
  • ¥15 echarts动画效果的问题,请帮我添加一个动画。不要机器人回答。
  • ¥60 许可证msc licensing软件报错显示已有相同版本软件,但是下一步显示无法读取日志目录。
  • ¥15 Attention is all you need 的代码运行
  • ¥15 一个服务器已经有一个系统了如果用usb再装一个系统,原来的系统会被覆盖掉吗
  • ¥15 使用esm_msa1_t12_100M_UR50S蛋白质语言模型进行零样本预测时,终端显示出了sequence handled的进度条,但是并不出结果就自动终止回到命令提示行了是怎么回事:
  • ¥15 前置放大电路与功率放大电路相连放大倍数出现问题
  • ¥30 关于<main>标签页面跳转的问题
  • ¥80 部署运行web自动化项目
  • ¥15 腾讯云如何建立同一个项目中物模型之间的联系