需求
COM 函数仅可用于 PHP 的 Windows 版本。 安装
这些函数作为 PHP 核心的一部分,无需被安装即可使用。PHP 的 Windows 版本已经内置该扩展模块的支持。您无需加载任何附加的扩展库即可使用这些函数。
COM 函数仅可用于 PHP 的 Windows 版本。 安装
这些函数作为 PHP 核心的一部分,无需被安装即可使用。PHP 的 Windows 版本已经内置该扩展模块的支持。您无需加载任何附加的扩展库即可使用这些函数。
解决方案 »
- imagecreatefromjpeg和imagepng问题
- php怎么实现批量图片上传?上传后又怎么循环输出图片?
- 除了使用表单,还有其他什么办法能将数据进行跨页传递?
- 这个要用什么函数来做到?
- php无限极分类的解决思路
- 请问,有使用smarttemplate模板的兄弟吗?$tpl->append('name','z3')这样的append有什么用?
- 比如说我的域名是http://www.hq.com 一个用户的注册名是user,我如何做才能让这个用户通过http://user.hq.com来访问他自己的页面 (有自己
- mysql创建新数据库的问题
- 聘请兼职网站开发和维护人员一名
- 后台权限
- 关于checkbox ,php 的一点小问题
- WEB协议有多少?怎样识别这些URL呢?
string COM::COM ( string module_name [, string server_name [, int codepage]])
COM class constructor. Parameters:
module_name
name or class-id of the requested component. server_name
name of the DCOM server from which the component should be fetched. If NULL, localhost is assumed. To allow DCOM com.allow_dcom has to be set to TRUE in php.ini. codepage
specifies the codepage that is used to convert php-strings to unicode-strings and vice versa. Possible values are CP_ACP, CP_MACCP, CP_OEMCP, CP_SYMBOL, CP_THREAD_ACP, CP_UTF7 and CP_UTF8.
例子 1. COM example (1)// starting word
$word = new COM("word.application") or die("Unable to instanciate Word");
print "Loaded Word, version {$word->Version}\n";//bring it to front
$word->Visible = 1;//open an empty document
$word->Documents->Add();//do some weird stuff
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("Useless test.doc");//closing word
$word->Quit();//free the object
$word->Release();
$word = null;