将word文档转化为html文件 visible = 1 ; $word->documents->open($wfilepath)or die(无法打开这个文件); $htmlpath = substr($wfilepath,0,-4); $word->activedocument->saveas($htmlpath,8); $word->quit(0); return $htmlpath; } $str1 = test;$w=e:/appserv/www/yougan/ . $str1 . .doc; $path = wordtohtml($w) . .htm; echo $path .
;print( word转html完成! );$str2 = $str1 . .htm;echo ;?>