<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/mysqli.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'mysqli.configuration.php',
    1 => 'Configurazione di Runtime',
    2 => 'Configurazione di Runtime',
  ),
  'up' => 
  array (
    0 => 'mysqli.setup.php',
    1 => 'Installazione/Configurazione',
  ),
  'prev' => 
  array (
    0 => 'mysqli.installation.php',
    1 => 'Installazione',
  ),
  'next' => 
  array (
    0 => 'mysqli.persistconns.php',
    1 => 'The mysqli Extension and Persistent Connections',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mysqli/ini.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mysqli.configuration" class="section">
 <h2 class="title">Configurazione di Runtime</h2>
 <p class="simpara">
Il comportamento di queste funzioni è influenzato dalle impostazioni di <var class="filename">php.ini</var>.
</p>
 <p class="para">
  <table id="mysqli.configuration.options" class="doctable table">
   <caption><strong>MySQLi Configuration Options</strong></caption>
   
    <thead>
     <tr>
      <th>Nome</th>
      <th>Default</th>
      <th>Modificabile</th>
      <th>Storico dei cambiamenti</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="mysqli.configuration.php#ini.mysqli.allow-local-infile" class="link">mysqli.allow_local_infile</a></td>
      <td>&quot;0&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td>Before PHP 7.2.16 and 7.3.3 the default was &quot;1&quot;.</td>
     </tr>

     <tr>
      <td><a href="mysqli.configuration.php#ini.mysqli.local-infile-directory" class="link">mysqli.local_infile_directory</a></td>
      <td class="empty">&nbsp;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td>Available as of PHP 8.1.0.</td>
     </tr>

     <tr>
      <td><a href="mysqli.configuration.php#ini.mysqli.allow-persistent" class="link">mysqli.allow_persistent</a></td>
      <td>&quot;1&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysqli.configuration.php#ini.mysqli.max-persistent" class="link">mysqli.max_persistent</a></td>
      <td>&quot;-1&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysqli.configuration.php#ini.mysqli.max-links" class="link">mysqli.max_links</a></td>
      <td>&quot;-1&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysqli.configuration.php#ini.mysqli.default-port" class="link">mysqli.default_port</a></td>
      <td>&quot;3306&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysqli.configuration.php#ini.mysqli.default-socket" class="link">mysqli.default_socket</a></td>
      <td>NULL</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysqli.configuration.php#ini.mysqli.default-host" class="link">mysqli.default_host</a></td>
      <td>NULL</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysqli.configuration.php#ini.mysqli.default-user" class="link">mysqli.default_user</a></td>
      <td>NULL</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysqli.configuration.php#ini.mysqli.default-pw" class="link">mysqli.default_pw</a></td>
      <td>NULL</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysqli.configuration.php#ini.mysqli.reconnect" class="link">mysqli.reconnect</a></td>
      <td>&quot;0&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td>Removed as of PHP 8.2.0</td>
     </tr>

     <tr>
      <td><a href="mysqli.configuration.php#ini.mysqli.rollback-on-cached-plink" class="link">mysqli.rollback_on_cached_plink</a></td>
      <td>&quot;0&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

    </tbody>
   
  </table>

 </p>
 <p class="para">
  For further details and definitions of the preceding INI_* constants, see
  the chapter on <a href="configuration.changes.php" class="link">configuration
  changes</a>.
 </p>

 <p class="para">Breve descrizione dei parametri
di configurazione.</p>

 <p class="para">
 <dl>
  
  
   <dt id="ini.mysqli.allow-local-infile">
    <code class="parameter">mysqli.allow_local_infile</code>
    <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
   </dt>
   <dd>
    <p class="para">
     Allow accessing, from PHP&#039;s perspective, local files with LOAD DATA
     statements
    </p>
   </dd>
  

  
   <dt id="ini.mysqli.local-infile-directory">
    <code class="parameter">mysqli.local_infile_directory</code>
    <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
   </dt>
   <dd>
    <p class="para">
     Allows restricting LOCAL DATA loading to files located in this designated 
     directory.
    </p>
   </dd>
  

  
   <dt id="ini.mysqli.allow-persistent">
    <code class="parameter">mysqli.allow_persistent</code>
    <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
   </dt>
   <dd>
    <p class="para">
     Enable the ability to create persistent connections using 
     <span class="function"><a href="function.mysqli-connect.php" class="function">mysqli_connect()</a></span>.
    </p>
   </dd>
  
  
   <dt id="ini.mysqli.max-persistent">
    <code class="parameter">mysqli.max_persistent</code>
    <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
   </dt>
   <dd>
    <p class="para">
     Maximum of persistent connections that can be made. Set to 
     0 for unlimited.
    </p>
   </dd>
  
  
   <dt id="ini.mysqli.max-links">
    <code class="parameter">mysqli.max_links</code>
    <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
   </dt>
   <dd>
    <p class="para">
     The maximum number of MySQL connections per process.
    </p>
   </dd>
  
   
   <dt id="ini.mysqli.default-port">
    <code class="parameter">mysqli.default_port</code>
    <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
   </dt>
   <dd>
    <p class="para">
     The default TCP port number to use when connecting to
     the database server if no other port is specified. If
     no default is specified, the port will be obtained
     from the <code class="literal">MYSQL_TCP_PORT</code> environment
     variable, the <code class="literal">mysql-tcp</code> entry in
     <var class="filename">/etc/services</var> or the compile-time
     <code class="literal">MYSQL_PORT</code> constant, in that order. Win32
     will only use the <code class="literal">MYSQL_PORT</code> constant.
    </p>
   </dd>
  
  
  
   <dt id="ini.mysqli.default-socket">
    <code class="parameter">mysqli.default_socket</code>
    <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
   </dt>
   <dd>
    <p class="para">
     The default socket name to use when connecting to a local
     database server if no other socket name is specified.
    </p>
   </dd>
  
   
   <dt id="ini.mysqli.default-host">
    <code class="parameter">mysqli.default_host</code>
    <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
   </dt>
   <dd>
    <p class="para">
     The default server host to use when connecting to the database
     server if no other host is specified.
    </p>
   </dd>
  
  
  
   <dt id="ini.mysqli.default-user">
    <code class="parameter">mysqli.default_user</code>
    <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
   </dt>
   <dd>
    <p class="para">
     The default user name to use when connecting to the database
     server if no other name is specified.
    </p>
   </dd>
  
  
  
   <dt id="ini.mysqli.default-pw">
    <code class="parameter">mysqli.default_pw</code>
    <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
   </dt>
   <dd>
    <p class="para">
     The default password to use when connecting to the database
     server if no other password is specified.
    </p>
   </dd>
  
  
  
   <dt id="ini.mysqli.reconnect">
    <code class="parameter">mysqli.reconnect</code>
    <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
   </dt>
   <dd>
    <p class="para">
     Automatically reconnect if the connection was lost.
    </p>
    <blockquote class="note"><p><strong class="note">Nota</strong>: 
     <span class="simpara">This <var class="filename">php.ini</var> setting had been ignored by the mysqlnd driver, and was removed
      as of PHP 8.2.0.
     </span>
    </p></blockquote>
   </dd>
  

  
   <dt id="ini.mysqli.rollback-on-cached-plink">
    <code class="parameter">mysqli.rollback_on_cached_plink</code>
    <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
   </dt>
   <dd>
    <p class="para">
     If this option is enabled, closing a persistent connection will rollback
     any pending transactions of this connection before it is put back into the
     persistent connection pool. Otherwise, pending transactions will be rolled
     back only when the connection is reused, or when it is actually closed.
    </p>
   </dd>
  
  
 </dl>
 </p>
 <p class="para">
   Users cannot set <code class="literal">MYSQL_OPT_READ_TIMEOUT</code> through an API 
   call or runtime configuration setting. Note that if it were possible there
   would be differences between how <code class="literal">libmysqlclient</code> and 
   streams would interpret the value of <code class="literal">MYSQL_OPT_READ_TIMEOUT</code>. 
 </p>
</div><?php manual_footer($setup); ?>