Source of: /manual/en/com.configuration.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/com.setup.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'com.configuration.php',
1 => 'Runtime Configuration',
),
'up' =>
array (
0 => 'com.setup.php',
1 => 'Installing/Configuring',
),
'prev' =>
array (
0 => 'com.installation.php',
1 => 'Installation',
),
'next' =>
array (
0 => 'com.resources.php',
1 => 'Resource Types',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<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">
</p><table class="doctable table">
<caption><b>Com configuration options</b></caption>
<thead valign="middle">
<tr valign="middle">
<th>Name</th>
<th>Default</th>
<th>Changeable</th>
<th>Changelog</th>
</tr>
</thead>
<tbody valign="middle" class="tbody">
<tr valign="middle">
<td align="left"><a href="com.configuration.php#ini.com.allow-dcom" class="link">com.allow_dcom</a></td>
<td align="left">"0"</td>
<td align="left">PHP_INI_SYSTEM</td>
<td align="left">Available since PHP 4.0.5.</td>
</tr>
<tr valign="middle">
<td align="left"><a href="com.configuration.php#ini.com.autoregister-typelib" class="link">com.autoregister_typelib</a></td>
<td align="left">"0"</td>
<td align="left">PHP_INI_ALL</td>
<td align="left">PHP_INI_SYSTEM in PHP 4. Available since PHP 4.1.0.</td>
</tr>
<tr valign="middle">
<td align="left"><a href="com.configuration.php#ini.com.autoregister-verbose" class="link">com.autoregister_verbose</a></td>
<td align="left">"0"</td>
<td align="left">PHP_INI_ALL</td>
<td align="left">PHP_INI_SYSTEM in PHP 4. Available since PHP 4.1.0.</td>
</tr>
<tr valign="middle">
<td align="left"><a href="com.configuration.php#ini.com.autoregister-casesensitive" class="link">com.autoregister_casesensitive</a></td>
<td align="left">"1"</td>
<td align="left">PHP_INI_ALL</td>
<td align="left">PHP_INI_SYSTEM in PHP 4. Available since PHP 4.1.0.</td>
</tr>
<tr valign="middle">
<td align="left"><a href="com.configuration.php#ini.com.code-page" class="link">com.code_page</a></td>
<td align="left">""</td>
<td align="left">PHP_INI_ALL</td>
<td align="left">Available since PHP 5.0.0.</td>
</tr>
<tr valign="middle">
<td align="left"><a href="com.configuration.php#ini.com.typelib-file" class="link">com.typelib_file</a></td>
<td align="left">""</td>
<td align="left">PHP_INI_SYSTEM</td>
<td align="left">Available since PHP 4.0.5.</td>
</tr>
</tbody>
</table>
<p>
For further details and definitions of the
PHP_INI_* modes, see the <a href="configuration.changes.modes.php" class="xref">Where a configuration setting may be set</a>.
</p>
<p class="para">Here's a short explanation of
the configuration directives.</p>
<p class="para">
</p><dl>
<dt id="ini.com.allow-dcom" class="varlistentry">
<span class="term">
<i><tt class="parameter">com.allow_dcom</tt></i>
</span>
</dt><dd class="listitem">
<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 id="ini.com.autoregister-typelib" class="varlistentry">
<span class="term">
<i><tt class="parameter">com.autoregister_typelib</tt></i>
</span>
</dt><dd class="listitem">
<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.php" class="xref">Runtime Configuration</a> configuration directive.
</p>
</dd>
<dt id="ini.com.autoregister-verbose" class="varlistentry">
<span class="term">
<i><tt class="parameter">com.autoregister_verbose</tt></i>
</span>
</dt><dd class="listitem">
<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 id="ini.com.autoregister-casesensitive" class="varlistentry">
<span class="term">
<i><tt class="parameter">com.autoregister_casesensitive</tt></i>
</span>
</dt><dd class="listitem">
<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.php" class="function">com_load_typelib()</a> for more details.
</p>
</dd>
<dt id="ini.com.code-page" class="varlistentry">
<span class="term">
<i><tt class="parameter">com.code_page</tt></i>
</span>
</dt><dd class="listitem">
<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 class="constant">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.php" 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 id="ini.com.typelib-file" class="varlistentry">
<span class="term">
<i><tt class="parameter">com.typelib_file</tt></i>
</span>
</dt><dd class="listitem">
<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.php" 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>
</dl>
<p>
</p>
</div><?php manual_footer(); ?>