| | |
convert anyfile to html
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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?
•
•
•
•
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
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!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
•
•
Join Date: Apr 2009
Posts: 257
Reputation:
Solved Threads: 37
yes you have to write codes for different type of files in different manner.
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:
![]() |
Similar Threads
- help needed; convert ppt slides to individual html page (HTML and CSS)
- convert .doc to html or txt on fly (during upload) with PHP (PHP)
- Convert MS Word to HTML via File Upload (PHP)
- convert microsoft word to html (PHP)
- Excel to Html (Perl)
Other Threads in the PHP Forum
- Previous Thread: Question about cookies
- Next Thread: How to Authorize and then Capture
| Thread Tools | Search this Thread |
apache api array beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions global google href htaccess html image include insert ip javascript joomla limit link list login mail mediawiki menu mlm msqli_multi_query multiple mycodeisbad mysql number oop parameter paypal pdf php phpincludeissue phpmyadmin problem query radio random recursion regex remote script search seo server sessions sms source sp space speed sql static subdomain syntax system table tag tutorial update upload url validator variable vbulletin video web webdesign white wordpress xml youtube






