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
https://forums.phpfreaks.com/topic/38531-solved-word-document-decoding-with-php/
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.