如题,如果能解析,麻烦告诉用到哪些方法

解决方案 »

  1.   

    pear中有个库,
    网上还有其他库
      

  2.   

    试一下这个:<?php
    /**
    * @desc PHP读取Word文档
    *
    */
    $word = new COM("word.application") or die ("Could not initialise MS Word object.");
        $word->Documents->Open(realpath("asd.doc"));    // Extract content.
        $content = (string) $word->ActiveDocument->Content;    echo $content;
        
        $word->ActiveDocument->Close(false);    $word->Quit();
        $word = null;
        unset($word); 
    ?>
      

  3.   

    word.application 在linux下能运行吗?
      

  4.   

    pear 的库是OpenDocument 吗 请问有读取的例子吗