...Beauty, cleaning, DIY tips and more - free to join!
   Login   Contact us   Site map   Puzzle Club   Ask a question    Newsletter

How To Read A Word Document Using PHP

Computing : Learning PHP

Many people often need to open a Word document using PHP.

For instance a recruitment site might want to open a Word document and store the data in a text format in a database.

However if you use the file() or similar functions then will end up getting a lot of rubbish rather than the actual text, as you will fetch all the characters you see when you send a Word document to notepad, as the data is encoded in the particular Word format.

If you want to engage with Word then you need it installed on the server and to use the COM functions, with a Windows server.

If Word is not installed and you are not using a Windows server then there is nothing that you can do to correctly read the contents of the Word document.


Profile image!
By: Stephen

  More about learn PHP

  Reply to How To Read A Word Document Using PHP

  Receive Our Newsletter

  Send to friend

learn PHP picture



Questions about learn PHP:

Ask question

More Articles:
How to improve your web searches
How to get pictures wthout copyright
Have a hobby? Get a website