PHP Questions Home
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

How can I view a Word document in a PHP page?


This doesn't make sense... presumably you mean you want to be able to access the content of a Word document using PHP?

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

Where is a text file i created kept?

What is the use of file in php?

What does file_get_contents do?

How do I open a file to write content to?

How can i upload large files like mp3 songs using php?



Custom Search