从 PHP/Linux 读取 Foxpro 文件 (.DBF)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6981586/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Reading Foxpro files (.DBF) from PHP/Linux
提问by Karthik Murugan
Is it possible to read locally available Foxpro files (.DBF) from a PHP script hosted on a Linux server?
是否可以从 Linux 服务器上托管的 PHP 脚本读取本地可用的 Foxpro 文件 (.DBF)?
Please suggest anything that doesn't depend on Windows or Java.
请建议任何不依赖于 Windows 或 Java 的内容。
采纳答案by Jong Bor Lee
php has an extension for reading dbf files: http://www.php.net/manual/en/book.dbase.php
php 有读取 dbf 文件的扩展名:http: //www.php.net/manual/en/book.dbase.php
回答by Shamit Verma
Various utilities are available for dumping DBF data to CSV and similar formats, E.g.: http://linux.die.net/man/1/dbfdump.
各种实用程序可用于将 DBF 数据转储为 CSV 和类似格式,例如:http: //linux.die.net/man/1/dbfdump。
Or you can invoke Open Office base (in headless mode) to convert data to CSV.
或者您可以调用 Open Office base(在无头模式下)将数据转换为 CSV。