源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

COM in PHP (winows only)

  • 时间:2020-09-17 23:17 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:COM in PHP (winows only)
找了很久,终于给我找到!哈哈哈...   //听说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支持.  
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部