Re: urgent please help (how to show .doc file on an html page)
piyush wrote:
i have uploadeed a .doc file into server now i want to show it on a
page
how can i do it
please help me with some code or code hints
The good way
<a href = "file.doc">clic k here for file</a>
The bad way:
header("Locatio n: http://server/file.doc");
consider that not every browser handles this in the same way. Most older
browsers do nasty stuff.
You could offcourse convert it to html with openoffice :-)
Re: urgent please help (how to show .doc file on an html page)
thanks for reply
but i have open office.org and i dont want to download that doc file i
want the php code that will convert .doc into html/any other browser
output format using php automatically
Re: urgent please help (how to show .doc file on an html page)
piyush wrote:
thanks for reply
but i have open office.org and i dont want to download that doc file i
want the php code that will convert .doc into html/any other browser
output format using php automatically
>
AFAIK there is no php code to do this. You need to use open office or
similar to convert it.
It's much better to just convert it when it's uploaded and save the
result as a html file.
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. jstucklex@attgl obal.net
=============== ===
Re: urgent please help (how to show .doc file on an html page)
Jerry Stuckle wrote:
piyush wrote:
>thanks for reply
>but i have open office.org and i dont want to download that doc file i
>want the php code that will convert .doc into html/any other browser
>output format using php automatically
>>
>
AFAIK there is no php code to do this. You need to use open office or
similar to convert it.
>
It's much better to just convert it when it's uploaded and save the
result as a html file.
>
There are some scripts out there (php and perl) that will convert word
to html but they have their flaws. The easest method is to paste it into
tinymce (properly configured, read the docs, use autoclean and the paste
plugin)
Comment