Parse word document using PHP

I want to make a system that can read any uploaded word document and converts it to readable HTML using PHP.

Please help me to solve that problem.

Thanks in advance.:slight_smile:

Depends on your host.

If you are on Unix, and have no access to execute shell commands/download packages… I believe you’re SOL.

If you do have access to execute shell commands and download packages, there are software packages for *NIX that will strip the text out of .doc formats (Note: Without formatting). A simple 10-second google search for ‘PHP read word document’ will give you the answer you seek.

If you’re on Windows/IIS… you can use the COM setup to convert things around and get the text… not sure about the formatting though.