How to display most used file extensions (pdf, doc, docx, xls, ...) into a browser using PHP? -


currently developping mobile webmail school, encountering iphone problem : iphone users enable download files, allow them, @ least, consult files common extensions : doc, docx, xls, xlsx, pdf, ppt, pptx, xml, open office files, on.

does exist using php or html/javascript ?

you use google doc's viewer: http://docs.google.com/viewer

this allow display of these formats directly in browser.

basically have display document:

<iframe src="http://docs.google.com/viewer?url=<?=urlencode($document_url)?>&embedded=true" width="600" height="780" style="border: none;"></iframe> 

(note google docs must have access these documents, may or may not make solution unsuitable.)


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -