php读取word文档怎么处理乱码?
发布网友
发布时间:2022-05-10 01:26
我来回答
共1个回答
热心网友
时间:2022-05-10 02:56
通过com调用word组件,试试。
<?
// this script is come from zend. :)
$word = new COM( "word.application ") or die( "Unable to instanciate Word ");
print "Loaded Word, version {$word-> Version}\n ";
$word-> Visible = 1;
$word-> Documents-> Add();
$word-> Selection-> TypeText( "This is a test... ");
$word-> Documents[1]-> SaveAs( "Useless test.doc ");
$word-> Quit();
?>