urgent please help (how to show .doc file on an html page)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • piyush

    urgent please help (how to show .doc file on an html page)

    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

  • none

    #2
    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 :-)

    Arjen

    Comment

    • piyush

      #3
      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

      Comment

      • Jerry Stuckle

        #4
        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
        =============== ===

        Comment

        • none

          #5
          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)

          Arjen

          Comment

          Working...