Jump to content

[SOLVED] word document decoding with php


Ninjakreborn

Recommended Posts

There is a way to take a text file and display it on a screen rather easily.

Is there anyway at all, to take a word document, and open it in the browser like you can do with a text file.  Like click on the file and it shows on the screen.

Same with php pages, and/or xhtml pages.  Is there a way to have them just output on the screen (mostly word documents).

 

Thanks.

 

Link to comment
Share on other sites

I didn't undertand what you meant, let me rephrase the question.

 

I know for a fact that .txt, .php, .htm, .html, .js, and .css files can be setup to where when someone clicks the filename, it comes up and displays all the text inside the file on the screen.  Like it was general text on a page.  I know this is possible nad have even done it.  However I was wondering about .doc files.  Can someone do the same thing with a .doc file, because using

fread

and just echoing the information (which works with the other filetypes) doesn't work with word document files.  Is there another method (even a long workaround) that does allow you to do this.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.