<?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 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.php-ini-scanned-files.php',
    1 => 'php_ini_scanned_files',
    2 => 'Retourne la liste des fichiers .ini analys&eacute;s dans les dossiers de configuration suppl&eacute;mentaires',
  ),
  'up' => 
  array (
    0 => 'ref.info.php',
    1 => 'Fonctions sur les options et les informations de PHP',
  ),
  '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' => 'fr',
    '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">Retourne la liste des fichiers .ini analysés dans les dossiers de configuration supplémentaires</span></p>

 </div>

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

  <p class="para rdfs-comment">
   <span class="function"><strong>php_ini_scanned_files()</strong></span> retourne une liste de noms de
   fichiers de configuration analysés après <var class="filename">php.ini</var>. Cette liste
   est au format CSV. Les dossiers examinés sont définis par une option de
   configuration lors de la compilation, et optionnellement par une variable
   d&#039;environnement lors de l&#039;exécution : plus d&#039;informations sont disponibles dans le
   <a href="configuration.file.php#configuration.file.scan" class="link">guide d&#039;installation</a>.
  </p>
  <p class="para">
   Les fichiers de configuration retournés incluent le chemin entier.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.php-ini-scanned-files-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">Cette fonction ne contient aucun paramètre.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.php-ini-scanned-files-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Retourne une <a href="language.types.string.php" class="link">chaîne de caractères</a> où les fichiers .ini sont séparés par des virgules en cas
   de succès. Chaque virgule est suivie d&#039;un retour à la ligne. Si la directive de
   configuration <strong class="option configure">--with-config-file-scan-dir</strong> n&#039;a
   pas été définie et que la variable d&#039;environnement
   <var class="varname">PHP_INI_SCAN_DIR</var> n&#039;est pas définie, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> est retourné.
   Si c&#039;était défini et que le dossier était vide, une chaîne vide est retournée.
   Si un fichier est méconnaissable, le fichier sera quand même inclus dans la
   <a href="language.types.string.php" class="link">chaîne de caractères</a> retournée mais entraînera également une erreur PHP.
   Cette erreur PHP sera visible à la fois au moment de la compilation et lors de
   l&#039;utilisation de <span class="function"><strong>php_ini_scanned_files()</strong></span>.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.php-ini-scanned-files-examples">
  <h3 class="title">Exemples</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Exemple #1 Un exemple de liste retournée par <span class="function"><strong>php_ini_scanned_files()</strong></span></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>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.php-ini-scanned-files-seealso">
  <h3 class="title">Voir aussi</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.ini-set.php" class="function" rel="rdfs-seeAlso">ini_set()</a> - Modifie la valeur d'une option de configuration</span></li>
    <li><span class="function"><a href="function.phpinfo.php" class="function" rel="rdfs-seeAlso">phpinfo()</a> - Affiche de nombreuses informations sur la configuration de PHP</span></li>
    <li><span class="function"><a href="function.php-ini-loaded-file.php" class="function" rel="rdfs-seeAlso">php_ini_loaded_file()</a> - R&eacute;cup&egrave;re le chemin d'un fichier php.ini charg&eacute;</span></li>
   </ul>
  </p>
 </div>


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