Getting PHP to read .doc files on Linux

后端 未结 8 1365
没有蜡笔的小新
没有蜡笔的小新 2020-12-18 05:41

I\'m trying to read a .doc file into a database so that I can index it\'s contents. Is there an easy way for PHP on Linux to read .doc files? Failing that is it possible to

8条回答
  •  轮回少年
    2020-12-18 06:27

    You can use antiword or AbiWord to pull the text out and feed it to your favorite full-text indexer. AbiWord is probably more effective for your purposes because it can convert into RTF, PDF and other formats (yes, it's a GUI word processor, but it also supports command-line usage).

提交回复
热议问题