Version}n";$word->Visible = 1;$word->Documents->Add()"> 跳转到主内容
websoft网络软件专家 - 深耕网络技术,打造实用软件!

COM in PHP (winows only)_PHP教程

找了很久,终于给我找到!哈哈哈...

//听说php 4也已经支持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支持.

http://www.bkjia.com/PHPjc/316877.html www.bkjia.com true http://www.bkjia.com/PHPjc/316877.html TechArticle找了很久,终于给我找到!哈哈哈... //听说php4也已经支持Java/EJB的说. ? // this script is come from zend. :) $word = new COM(word.application) or die(Unable to ins...

相关文章