convert anyfile to html

Reply

Join Date: Jan 2009
Posts: 20
Reputation: manojjena1982 is an unknown quantity at this point 
Solved Threads: 0
manojjena1982 manojjena1982 is offline Offline
Newbie Poster

convert anyfile to html

 
0
  #1
Aug 16th, 2009
Hi! thr,

I am uploading a file in to server. At the time of downloading, it should show "view as html" as google does.

thanx in advance.

Manoj
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 184
Reputation: FlashCreations is an unknown quantity at this point 
Solved Threads: 15
FlashCreations's Avatar
FlashCreations FlashCreations is offline Offline
Junior Poster

Re: convert anyfile to html

 
0
  #2
Aug 16th, 2009
Google Docs and HTML are two different things. Do you want a link that shows the HTML of a document or do you want a link to view the document in Google Docs?
FlashCreations
(aka PhpMyCoder)

About Me | My Blog | Contact Me
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,075
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: convert anyfile to html

 
0
  #3
Aug 17th, 2009
Originally Posted by manojjena1982 View Post
Hi! thr,

I am uploading a file in to server. At the time of downloading, it should show "view as html" as google does.

thanx in advance.

Manoj
This is actually a complicated task. You'll need to be able to parse different file types into HTML.

For example, converting a PDF file to HTML is different from converting a word document.

You'll have to do specific parsing for each file you want to support.

Security is also an issue here. You'll probably need to scan the documents for vulnerabilities.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 257
Reputation: BzzBee is an unknown quantity at this point 
Solved Threads: 37
BzzBee BzzBee is offline Offline
Posting Whiz in Training

Re: convert anyfile to html

 
0
  #4
Aug 17th, 2009
yes you have to write codes for different type of files in different manner.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 20
Reputation: manojjena1982 is an unknown quantity at this point 
Solved Threads: 0
manojjena1982 manojjena1982 is offline Offline
Newbie Poster

Re: convert anyfile to html

 
0
  #5
Aug 18th, 2009
Coulld you share any idea to do this?
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 184
Reputation: FlashCreations is an unknown quantity at this point 
Solved Threads: 15
FlashCreations's Avatar
FlashCreations FlashCreations is offline Offline
Junior Poster

Re: convert anyfile to html

 
0
  #6
Aug 18th, 2009
Well what kind of files would you be uploading. Images? Document? Presentations? Some of these are extremely easy to view as html. For most images (except for PSD's and others that won't display in a normal browser) all you have to do is just output a simple HTML document and use the img tag to include the image in it. For non-supported formats of images, you will need to convert them to a more standard format such as PNG or JPG. This can be done simply by Googling for a php PSD to PNG converter. The same goes for any kind of document. You can find PDF to HTML converters, you can find Doc and Docx to HTML converters. All you have to do is search Google for all the file types you would like to support. I've found some of these PHP converters for you:
FlashCreations
(aka PhpMyCoder)

About Me | My Blog | Contact Me
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC