<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/configuration.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'configuration.file.per-user.php',
    1 => '.user.ini files',
    2 => '.user.ini files',
  ),
  'up' => 
  array (
    0 => 'configuration.php',
    1 => 'Runtime Configuration',
  ),
  'prev' => 
  array (
    0 => 'configuration.file.php',
    1 => 'The configuration file',
  ),
  'next' => 
  array (
    0 => 'configuration.changes.modes.php',
    1 => 'Where a configuration setting may be set',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'install/ini.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="configuration.file.per-user" class="sect1">
  <h2 class="title">.user.ini files</h2>

  <p class="simpara">
   PHP includes support for configuration INI files on a
   per-directory basis. These files are processed <em>only</em> by
   the CGI/FastCGI SAPI. This functionality obsoletes the PECL htscanner
   extension. If you are running PHP as Apache module, use <var class="filename">.htaccess</var> files for the same
   effect.
  </p>

  <p class="simpara">
   In addition to the main <var class="filename">php.ini</var> file, PHP scans for INI files in each
   directory, starting with the directory of the requested PHP file, and
   working its way up to the current document root (as set in
   <var class="varname"><a href="reserved.variables.server.php" class="classname">$_SERVER['DOCUMENT_ROOT']</a></var>). In case the PHP file is
   outside the document root, only its directory is scanned.
  </p>
  <p class="simpara">
   Only INI settings with the
   modes <strong><code><a href="info.constants.php#constant.ini-perdir">INI_PERDIR</a></code></strong> and
   <strong><code><a href="info.constants.php#constant.ini-user">INI_USER</a></code></strong> will be recognized in .user.ini-style INI
   files.
  </p>

  <p class="simpara">
   Two new INI directives,
   <a href="ini.core.php#ini.user-ini.filename" class="link">user_ini.filename</a> and
   <a href="ini.core.php#ini.user-ini.cache-ttl" class="link">user_ini.cache_ttl</a>
   control the use of user INI files.
  </p>

  <p class="simpara">
   <a href="ini.core.php#ini.user-ini.filename" class="link">user_ini.filename</a> sets the name of the file PHP looks for
   in each directory; if set to an empty string, PHP doesn&#039;t scan at all. The
   default is <code class="literal">.user.ini</code>.
  </p>

  <p class="simpara">
   <a href="ini.core.php#ini.user-ini.cache-ttl" class="link">user_ini.cache_ttl</a> controls how often user INI files are
   re-read. The default is 300 seconds (5 minutes).
  </p>
 </div><?php manual_footer($setup); ?>