📄 com.configuration.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Runtime Configuration</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="com.installation.html">Installation</a></div> <div class="next" style="text-align: right; float: right;"><a href="com.resources.html">Resource Types</a></div> <div class="up"><a href="com.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="com.configuration" class="section"> <h2 class="title">Runtime Configuration</h2> <p class="simpara">The behaviour of these functions is affected by settings in <var class="filename">php.ini</var>.</p> <p class="para"> <table border="5"> <caption><b>Com configuration options</b></caption> <colgroup> <thead valign="middle"> <tr valign="middle"> <th colspan="1">Name</th> <th colspan="1">Default</th> <th colspan="1">Changeable</th> <th colspan="1">Changelog</th> </tr> </thead> <tbody valign="middle" class="tbody"> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">com.allow_dcom</td> <td colspan="1" rowspan="1" align="left">"0"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_SYSTEM</td> <td colspan="1" rowspan="1" align="left">Available since PHP 4.0.5.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">com.autoregister_typelib</td> <td colspan="1" rowspan="1" align="left">"0"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td> <td colspan="1" rowspan="1" align="left">PHP_INI_SYSTEM in PHP 4. Available since PHP 4.1.0.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">com.autoregister_verbose</td> <td colspan="1" rowspan="1" align="left">"0"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td> <td colspan="1" rowspan="1" align="left">PHP_INI_SYSTEM in PHP 4. Available since PHP 4.1.0.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">com.autoregister_casesensitive</td> <td colspan="1" rowspan="1" align="left">"1"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td> <td colspan="1" rowspan="1" align="left">PHP_INI_SYSTEM in PHP 4. Available since PHP 4.1.0.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">com.code_page</td> <td colspan="1" rowspan="1" align="left">""</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td> <td colspan="1" rowspan="1" align="left">Available since PHP 5.0.0.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">com.typelib_file</td> <td colspan="1" rowspan="1" align="left">""</td> <td colspan="1" rowspan="1" align="left">PHP_INI_SYSTEM</td> <td colspan="1" rowspan="1" align="left">Available since PHP 4.0.5.</td> </tr> </tbody> </colgroup> </table> For further details and definitions of the PHP_INI_* constants, see the <a href="ini.html" class="xref">php.ini directives</a>. </p> <p class="para">Here's a short explanation ofthe configuration directives.</p> <p class="para"> <dl> <dt id="ini.com.allow-dcom"> <span class="term"> <i><tt class="parameter">com.allow_dcom</tt></i> </span> <dd> <p class="para"> When this is turned on, PHP will be allowed to operate as a D-COM (Distributed COM) client and will allow the PHP script to instantiate COM objects on a remote server. </p> </dd> </dt> <dt id="ini.com.autoregister-typelib"> <span class="term"> <i><tt class="parameter">com.autoregister_typelib</tt></i> </span> <dd> <p class="para"> 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 the <a href="com.configuration.html" class="xref">Runtime Configuration</a> configuration directive. </p> </dd> </dt> <dt id="ini.com.autoregister-verbose"> <span class="term"> <i><tt class="parameter">com.autoregister_verbose</tt></i> </span> <dd> <p class="para"> 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. </p> </dd> </dt> <dt id="ini.com.autoregister-casesensitive"> <span class="term"> <i><tt class="parameter">com.autoregister_casesensitive</tt></i> </span> <dd> <p class="para"> When this is turned on (the default), constants found in auto-loaded type libraries will be registered case sensitively. See <a href="function.com-load-typelib.html" class="function">com_load_typelib()</a> for more details. </p> </dd> </dt> <dt id="ini.com.code-page"> <span class="term"> <i><tt class="parameter">com.code_page</tt></i> </span> <dd> <p class="para"> 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 <b><tt>CP_ACP</tt></b>, which is the default system ANSI code page. </p> <p class="para"> 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 <a href="class.com.html" class="xref">COM</a> 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. </p> <blockquote><p><b class="note">Note</b>: <span class="simpara"> This configuration directive was introduced with PHP 5. </span> </p></blockquote> </dd> </dt> <dt id="ini.com.typelib-file"> <span class="term"> <i><tt class="parameter">com.typelib_file</tt></i> </span> <dd> <p class="para"> 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 <a href="function.com-load-typelib.html" class="function">com_load_typelib()</a>. 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 <i>#cis</i> or <i>#case_insensitive</i>, then the constants from that library will be registered case insensitively. </p> </dd> </dt> </dl> </p> </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="com.installation.html">Installation</a></div> <div class="next" style="text-align: right; float: right;"><a href="com.resources.html">Resource Types</a></div> <div class="up"><a href="com.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -