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

I am trying to find the most recent directory that I am working in. example http://www.mysite.com/apples/index.php how do I get php to find the directory "apples" so I can make it a directory

Hello, I have a php file that has octet binary numbers in it. How can I see the actual wording? This is an example of how it look: 00111010 11010010 And so on.

What does file_get_contents do?

Where is a text file i created kept?

how to upload large files like mp3 songs in php



Custom Search