943,175 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 106
  • PHP RSS
Sep 3rd, 2010
0

convert rtf to html through abiword

Expand Post »
I am trying to convert a rtf file to html file in php. The below code is not working, not giving any error also.

<?php
$handle = popen("/usr/bin/abiword --plugin AbiCommand 2>&1", "w");
fputs($handle, "server");
fputs($handle, "load /var/www/abiword/test.rtf");
fputs($handle, "save /var/www/abiword/test.html");
?>

when i do this conversion through terminal with the below command, its working fine and converting.
abiword --to=rtftohtml.html test.rtf

But through php page its not converting, please suggest me the right way to convert from php page.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
krrr25 is offline Offline
2 posts
since Aug 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Question about a php urls
Next Thread in PHP Forum Timeline: two actions in a form





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC