I've searched through several pages of posts after searching keywords like, "converting Word document to HTML php." I've read the htmlentities and html_entity_decode functions on php.net as well as the COM information. I've even tried some of the functions listed in the posts for those functions. Nothing has worked. I get squares and funky characters displayed on the page along with the text in the document, like this: ÐÏࡱá>þÿ þÿÿÿ
All I want to do is display a Word doc on the screen. I'm providing an upload function and then want to display that uploaded document in the browser. Right now, I'm just dealing with Word documents. Uploading HTML documents and then using include($docName) works fine since the browser does the decoding work of the HTML document. I'm okay with the virus check box that pops up asking to OPEN, SAVE, etc. when normally opening a Word doc with a browser. I just want to display the doc. If I can convert it to HTML that's fine too.
FYI: Server is UNIX, PHP version is 4.2.2 (on the test sytem that I'm using, not sure about the live server), every client that will use these pages has MS Word installed and is using Internet Explorer (I can guarantee that as it's a company standard), and site can only be accessed from internal corporate networks.
So, how can I convert a MS Word doc to HTML to view or open the Word doc in the browser with PHP?
Thoughts? TIA.
DreamerZ
All I want to do is display a Word doc on the screen. I'm providing an upload function and then want to display that uploaded document in the browser. Right now, I'm just dealing with Word documents. Uploading HTML documents and then using include($docName) works fine since the browser does the decoding work of the HTML document. I'm okay with the virus check box that pops up asking to OPEN, SAVE, etc. when normally opening a Word doc with a browser. I just want to display the doc. If I can convert it to HTML that's fine too.
FYI: Server is UNIX, PHP version is 4.2.2 (on the test sytem that I'm using, not sure about the live server), every client that will use these pages has MS Word installed and is using Internet Explorer (I can guarantee that as it's a company standard), and site can only be accessed from internal corporate networks.
So, how can I convert a MS Word doc to HTML to view or open the Word doc in the browser with PHP?
Thoughts? TIA.
DreamerZ