dongsanhu4784 2019-05-30 10:43
浏览 79

无法在PHP中打开一些DBF文件

I have a php script that uses dbase to open dbf files. I found that I can't open some of this files and I don't know why.

The error that I got is:

dbase_open(): unable to open database

But I can open other files without problem.

I've tried open it with DBF Viewer and then exporting it again and it works then, but I can't do that with php.

I don't know if it could be a charset problem or a version problem, but files seem equal, in Visual FoxPro.

What should i check?

  • 写回答

1条回答 默认 最新

  • dstew32424 2019-05-31 12:28
    关注

    The problem was a column with type Timestamp dbase for php doesn't allow this type. The solution was convert timestamp to date

    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog