943,831 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 975
  • PHP RSS
Aug 18th, 2009
0

How to view a word file as html?

Expand Post »
I have a registration page where a user will upload his/her resume. On clicking "register" button the form will sent all the data to admin. It also sends a link called "download" containing the path of the word file that the user has uploaded .On clicking download the admin is able to download the resume.

I also want to send another link saying "View as HTML" as google mail, so that the admin views the word file as html document rather than downloading it.

Anyone please suggest how will I convert the word file to html page.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rajeshswain is offline Offline
5 posts
since Feb 2008
Aug 18th, 2009
0

Re: How to view a word file as html?

getting the text from a word document is something that only microsoft word can do. You're going to need to employ some special program or way to get the text out, as you need something that understands word files
Reputation Points: 14
Solved Threads: 22
Junior Poster
JugglerDrummer is offline Offline
138 posts
since Apr 2009
Aug 19th, 2009
0

Re: How to view a word file as html?

I don't think that you want to try turning it into html. If you provide a link to a Word document it will pop up a panel to save it when you click on it. Under Internet Explorer it will open the file but that doesn't seem to be consistent in other browsers. Either way, you can save it and that addresses part of your need. Not sure how to force it to open the file in other browsers.

If you are bound and determined to go the other way, this utility goes part way by extracting text but you need to compile it and then call it from PHP using a Shell. You also lose most of the formatting. Too complicated and incomplete for my liking. catdoc
Last edited by chrishea; Aug 19th, 2009 at 1:14 am.
Reputation Points: 210
Solved Threads: 228
Nearly a Posting Virtuoso
chrishea is offline Offline
1,389 posts
since Sep 2008
Aug 19th, 2009
0

Re: How to view a word file as html?

yes, its hard to convert document file into HTML. If you want any use to see his/her resume then you should provide him a link so he/she will download his/her resume and will see that.
Reputation Points: 16
Solved Threads: 48
Posting Whiz
BzzBee is offline Offline
327 posts
since Apr 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: How to Authorize and then Capture
Next Thread in PHP Forum Timeline: Simple PHP Regex Question!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC