| | |
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
Views: 309 | Replies: 5
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download duplicates dynamic echo email error file files folder form forms function functions google href htaccess html htmlspecialchars image include insert integration ip java javascript joomla limit link links login loop mail menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php phpvotingscript problem query radio random recursion regex remote replace script search select server session sessions sms soap source space speed sql structure syntax system table tutorial update updates upload url validation validator variable video web xml youtube






