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.
Questions about learn PHP: