1

In the last few hours I found script for php which converts a .doc file to a .html file but I've not been successful yet.

I just made some simple code for it, like this:

<?php 

    header("Content-type: application/html");
    header("Content-Disposition: attachment;Filename=as.html");
    echo $content = readfile('abc.doc');

?>

It makes an output like the one shown below in the image.

enter image description here

any other way to do this ? as same to same as .doc file ?

1 Answer 1

1

Did you already search for a solution? I just found this link, perhaps it might help you: http://www.daniweb.com/web-development/php/threads/130342/convert-.doc-to-html-or-txt-on-fly-during-upload-with-php

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.