How can I view a Word document in a PHP page?
Well if you view the source of a Word document in notepad then you'll find that this is rather difficult :)
However there are programs out there to convert Word documents to text, you'll need to install the .exe on your server of one, then load the content into a variable accessible in your PHP script.
Alternatively you could try using the COM controls.
Comments on this Question/Answer
What is the difference move_uploaded_file, copy and ftpput for file uploading?By: vishwas, 15 Jan 2009 22:18:43
Reply to comments / post your own comment >>>
ASK A QUESTION
More files PHP Questions
Would like to create a web page by using the contents of file#1 as input, writing contents of a variable as content, and ending with contents of file#2. Would you please help me learn how to do this? Here is my attempt: $in1 = 'input1.html'; $in2 =What does file_get_contents do?
What is the use of file in php?
How can I export data into Word/Excel documents?
Where is a text file i created kept?
