homepage Welcome to WebmasterWorld Guest from 54.227.141.230
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Need code to convert word doc to html
hozyali




msg:3735526
 6:18 pm on Aug 31, 2008 (gmt 0)

Hello,

I need a php code which can take a word doc and convert it in html on the fly.

I searched Google a lot found several scripts which convert word doc to html easily but do not retain the word formatting in html. so I need something which can take the formatting also.

Any help would be highly appreciated.

Regards
Ali

 

jatar_k




msg:3736493
 1:36 pm on Sep 2, 2008 (gmt 0)

no clue, you'd have to keep looking

phpclasses or hotscripts might have one

hozyali




msg:3736643
 6:10 pm on Sep 2, 2008 (gmt 0)

well, finally I got a class from the above site, and it worked fine on my windows OS which has MS word installed. But it doesn't work with Linux server.

Thanks, I will be looking.

Ali

jezra




msg:3738904
 8:04 am on Sep 5, 2008 (gmt 0)

abiword can convert MS Word files to html on the command line. The syntax is
abiword your_word_file.doc -to=newfile.html

if you have abiword on your linux system and you have write permission for the output directory, you should be able to wrap the abiword command in either the exec() or system() function.

hozyali




msg:3738922
 8:37 am on Sep 5, 2008 (gmt 0)

Thanks for your info. I will check for that component on my server.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved