<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.info.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.php-ini-scanned-files.php',
    1 => 'php_ini_scanned_files',
    2 => 'Restituisce l\'elenco dei file .ini leti dalla directory ini aggiuntiva',
  ),
  'up' => 
  array (
    0 => 'ref.info.php',
    1 => 'PHP Options/Info Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.php-ini-loaded-file.php',
    1 => 'php_ini_loaded_file',
  ),
  'next' => 
  array (
    0 => 'function.php-sapi-name.php',
    1 => 'php_sapi_name',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/info/functions/php-ini-scanned-files.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.php-ini-scanned-files" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">php_ini_scanned_files</h1>
    <p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">php_ini_scanned_files</span> &mdash; <span class="dc-title">Restituisce l&#039;elenco dei file .ini leti dalla directory ini aggiuntiva</span></p>

   </div>
   <div class="refsect1 unknown-106" id="refsect1-function.php-ini-scanned-files-unknown-106">
    <h3 class="title">Descrizione</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>php_ini_scanned_files</strong></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

     <p class="simpara">
      <span class="function"><strong>php_ini_scanned_files()</strong></span> restituisce un elenco separato da virgola
      dei file di configurazione letti dopo il <var class="filename">php.ini</var>. Questi file sono
      cercati nella directory specificata dall&#039;opzione
      <strong class="option configure">--with-config-file-scan-dir</strong> impostata al momento
      della compila.
     </p>
     <p class="simpara">
      La funzione restituisce la lista separata da virgola se riesce.  Al contrario, se 
      l&#039;impostazione <strong class="option configure">--with-config-files-scan-dir</strong> non è configurata
      la funzione resttuisce <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>. Se un file non è riconoscibile, questo sarà inserito
      nell&#039;elenco restituito, ma il PHP darà errore.
      Questo errore sarà visualizzato sia al momento della compila sia utilizzando     
      <span class="function"><strong>php_ini_scanned_files()</strong></span>.
     </p>
     <p class="simpara">
      La lista restituita comprende anche il percorso di include specificato in       
      <strong class="option configure">--with-config-file-scan-dir</strong>. Ogni virgola è seguita
      da un carattere di a capo (newline).
     </p>
     <p class="para">
      <div class="example" id="example-1">
       <p><strong>Example #1 Un semplice esempio di lista restuita dalla funzione</strong></p>
       <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">if (</span><span style="color: #0000BB">$filelist </span><span style="color: #007700">= </span><span style="color: #0000BB">php_ini_scanned_files</span><span style="color: #007700">()) {<br />    if (</span><span style="color: #0000BB">strlen</span><span style="color: #007700">(</span><span style="color: #0000BB">$filelist</span><span style="color: #007700">) &gt; </span><span style="color: #0000BB">0</span><span style="color: #007700">) {<br />        </span><span style="color: #0000BB">$files </span><span style="color: #007700">= </span><span style="color: #0000BB">explode</span><span style="color: #007700">(</span><span style="color: #DD0000">','</span><span style="color: #007700">, </span><span style="color: #0000BB">$filelist</span><span style="color: #007700">);<br /><br />        foreach (</span><span style="color: #0000BB">$files </span><span style="color: #007700">as </span><span style="color: #0000BB">$file</span><span style="color: #007700">) {<br />            echo </span><span style="color: #DD0000">"&lt;li&gt;" </span><span style="color: #007700">. </span><span style="color: #0000BB">trim</span><span style="color: #007700">(</span><span style="color: #0000BB">$file</span><span style="color: #007700">) . </span><span style="color: #DD0000">"&lt;/li&gt;\n"</span><span style="color: #007700">;<br />        }<br />    }<br />}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
       </div>

      </div>
     </p>
     <p class="simpara">
      Vedere anche <span class="function"><a href="function.ini-set.php" class="function">ini_set()</a></span> e <span class="function"><a href="function.phpinfo.php" class="function">phpinfo()</a></span>.
     </p>
    </div>

   </div><?php manual_footer($setup); ?>