Forum Moderators: coopster

Message Too Old, No Replies

Script to convert DOC to HTML / TEXT

Php script to read/ parse ot convert Doc content to HTML w/o COM settings

         

yukti

7:07 am on Aug 30, 2006 (gmt 0)

10+ Year Member



Hi All!

Am looking for the php script to convert Doc content to HTML or TEXT..
My project doesnot require any thing related to COM settings and "save-as" ..fundas.
Searched allot on the search engines .. didn't help much .

Hope to get a help!

Thanks & regards
Yukti.

sned

11:55 pm on Aug 30, 2006 (gmt 0)

10+ Year Member



If you have access to a shell through php, you could try catdoc [directory.fsf.org].

I use it like this:

ob_start();
passthru('/usr/local/bin/catdoc ' . $filename);
$text = ob_get_contents();
ob_end_clean();

yukti

9:04 am on Sep 11, 2006 (gmt 0)

10+ Year Member



Thanks Sned .. am glad u replied ...

But I cant use shell, I need a simple script .. more of a class or function ..

thanks & regards

Yukti

coopster

11:56 am on Sep 11, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You could try the open source options such as hotscripts, sourceforge, freshmeat, and phpclasses.org.