Requesting Help

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
tamilmani
Forum Commoner
Posts: 39
Joined: Tue Apr 01, 2008 2:53 am

Requesting Help

Post by tamilmani »

Hi All,

This is Tamilmani Mohan.

My Issue:- To show the word document content in browser .

How i show the word document in browser by using PHP ?. Please any one help in this problem.

Thanks
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

Re: Requesting Help

Post by twinedev »

Well, you are definitely need to provide more details of what exactly you are wanting to happen, otherwise you will get someone who is in a smart** mode who will post the following, which technically would feed the file to the browser, although probably not how you meant:

Code: Select all

<?php readfile('my_document.doc'); die(); ?>
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Requesting Help

Post by califdon »

HTML doesn't support proprietary formats like Microsoft's Word format, so you really probably need to save those documents to a different format, using Microsoft Word. You can easily save a Word document as HTML, right from the Word File menu (Save as Web Page). It may not give you the quality you would like to have, but it may be the easiest way to do it.
Post Reply