php dcom扩展配置,PHP: 运行时配置 - Manual

本文详细介绍了PHP中与COM组件交互的相关配置,包括允许D-COM操作、自动注册类型库、错误报告以及.NET框架版本设定。此外,还提到了在启动时加载类型库的文件路径设置,以及代码页和字符集的控制,确保PHP脚本能正确与COM对象进行交互。
摘要由CSDN通过智能技术生成

com.allow_dcom

如果打开此选项,PHP 将被允许以一个 D-COM(Distributed

COM)客户方式操作并允许 PHP 脚本在远程服务器上实例化 COM 对象。

com.autoregister_typelib

When this is turned on, PHP will attempt to register constants from

the typelibrary of COM objects that it instantiates, if those objects

implement the interfaces required to obtain that information.

The case sensitivity of the constants it registers is controlled by the

configuration directive.

com.autoregister_verbose

When this is turned on, any problems with loading a typelibrary during

object instantiation will be reported using the PHP error mechanism.

The default is off, which does not emit any indication if there was

an error finding or loading the type library.

com.autoregister_casesensitive

When this is turned on (the default), constants found in auto-loaded

type libraries when instatiating COM objects will be registered case sensitively. See

com.code_page

It controls the default character set code-page to use when passing

strings to and from COM objects. If set to an empty string, PHP will

assume that you want CP_ACP, which is the default

system ANSI code page.

If the text in your scripts is encoded using a different

encoding/character set by default, setting this directive will save you

from having to pass the code page as a parameter to the com class constructor. Please note that by

using this directive (as with any PHP configuration directive), your PHP

script becomes less portable; you should use the COM constructor parameter

whenever possible.

com.dotnet_version

The version of the .NET framework to use for dotnet objects.

The value of the setting is the first three parts of the framework's version number,

separated by dots, and prefixed with v, e.g. v4.0.30319.

com.typelib_file

When set, this should hold the path to a file that contains a list

of typelibraries that should be loaded on startup. Each line of

the file will be treated as the type library name and loaded as

though you had called #cis or #case_insensitive,

then the constants from that library will be registered case

insensitively.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值