运行时配置

这些函数的行为受php.ini中的设置影响。

COM 配置选项
名字默认可修改范围更新日志
com.allow_dcom"0"PHP_INI_SYSTEM自 PHP 4.0.5 起可用
com.autoregister_typelib"0"PHP_INI_ALL在 PHP 4 中是 PHP_INI_SYSTEM。自 PHP 4.1.0 起可用
com.autoregister_verbose"0"PHP_INI_ALL在 PHP 4 中是 PHP_INI_SYSTEM。自 PHP 4.1.0 起可用
com.autoregister_casesensitive"1"PHP_INI_ALL在 PHP 4 中是 PHP_INI_SYSTEM。自 PHP 4.1.0 起可用
com.code_page""PHP_INI_ALL自 PHP 5.0.0 起可用
com.typelib_file""PHP_INI_SYSTEM自 PHP 4.0.5 起可用
有关 PHP_INI_* 样式的更多详情与定义,见配置可被设定范围

这是配置指令的简短说明。

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 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 theconfiguration 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 will be registered case sensitively. Seecom_load_typelib()for more details.

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 wantCP_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 theCOMclass 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.

This configuration directive was introduced with PHP 5.
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 calledcom_load_typelib(). The constants will be registered persistently, so that the library only needs to be loaded once. If a type library name ends with the string#cisor#case_insensitive, then the constants from that library will be registered case insensitively.

淘宝 adsense 商品推荐

正版Google AdSense实战 用谷歌广告联盟出海赚美元 第2版 祁劲松 seo搜索引擎优化广告营销网站运营书 AdSense从入门到jing通书

价格:35.6元