php操作word,excel,具体怎么操作呀? 
unix系统的服务器可以操作word,excel吗?

解决方案 »

  1.   

    COM,在安装了OFFICE的WINDOWS下。
      

  2.   

    哦,必须要先安装OFFICE吗?  那在unix系统下可以吗
      

  3.   

    能告诉我下,具体怎么操作excel吗,或者给个简单的例子呀
      

  4.   

    phpexcel 搜索一下,这个操作excel很强,没有环境限制简单例子
    http://www.ityizhan.com/phpexcel-write-and-read-excel-examples/
    http://www.111cn.net/phper/21/0f2be0707f8785fb8e715f22bdc43c8a.htm下载Phpexcel
    http://phpexcel.codeplex.com/
      

  5.   


    <?
    /**
    * @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); 
    ?>
      

  6.   

    pear里有个excel类
    excel-reader