|
![]() |
名片设计 CorelDRAW Illustrator AuotoCAD Painter 其他软件 Photoshop Fireworks Flash |
|
找了很久,终于给我找到!哈哈哈... //听说php4也已经支持Java/EJB的说. <? // 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(); ?> 注重:先用phpinfo()看看你的机器是否打开了COM支持. 返回类别: 教程 上一教程: 新版mysql+apache+php Linux安装指南 下一教程: PHP4与MySQL数据库操作函数详解(五) 您可以阅读与"COM in PHP (winows only)"相关的教程: · PHP4(windows版本)中的COM函数 · PHP4(windows版本)中的COM函数 · Compiling php with crypt() · 转帖:PHP4(windows版本)中的COM函数 · 对《Windows 9x/NT下以Apache的模块方法安装PHP4》的补充 |
![]() ![]() |
快精灵印艺坊 版权所有 |
首页![]() ![]() ![]() ![]() ![]() ![]() ![]() |