...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.


By: Stephen

Share on Facebook: On Twitter: TwitterTweet this!

  Reply to How To Read A Word Document Using PHP

  Receive Our Newsletter




Questions about learn PHP:

Ask question

More Articles:
How to access any website
How to turn off a firewall
Introduction