<?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 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.php-ini-loaded-file.php',
    1 => 'php_ini_loaded_file',
    2 => 'Retrieve a path to the loaded php.ini file',
  ),
  'up' => 
  array (
    0 => 'ref.info.php',
    1 => 'PHP-Optionen-/-Informationen-Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.memory-reset-peak-usage.php',
    1 => 'memory_reset_peak_usage',
  ),
  'next' => 
  array (
    0 => 'function.php-ini-scanned-files.php',
    1 => 'php_ini_scanned_files',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/info/functions/php-ini-loaded-file.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.php-ini-loaded-file" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">php_ini_loaded_file</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.2.4, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">php_ini_loaded_file</span> &mdash; <span class="dc-title">Retrieve a path to the loaded php.ini file</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.php-ini-loaded-file-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>php_ini_loaded_file</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">
   Check if a <var class="filename">php.ini</var> file is loaded, and retrieve its path.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.php-ini-loaded-file-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">Diese Funktion besitzt keine Parameter.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.php-ini-loaded-file-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   The loaded <var class="filename">php.ini</var> path, or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> if one is not loaded.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.php-ini-loaded-file-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Beispiel #1 <span class="function"><strong>php_ini_loaded_file()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$inipath </span><span style="color: #007700">= </span><span style="color: #0000BB">php_ini_loaded_file</span><span style="color: #007700">();<br /><br />if (</span><span style="color: #0000BB">$inipath</span><span style="color: #007700">) {<br />    echo </span><span style="color: #DD0000">'Loaded php.ini: ' </span><span style="color: #007700">. </span><span style="color: #0000BB">$inipath</span><span style="color: #007700">;<br />} else {<br />    echo </span><span style="color: #DD0000">'A php.ini file is not loaded'</span><span style="color: #007700">;<br />}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>Das oben gezeigte Beispiel erzeugt
eine ähnliche Ausgabe wie:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Loaded php.ini: /usr/local/php/php.ini</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.php-ini-loaded-file-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.php-ini-scanned-files.php" class="function" rel="rdfs-seeAlso">php_ini_scanned_files()</a> - Liefert eine Liste von analysierten .ini-Dateien aus einem zus&auml;tzlichen
   ini-Verzeichnis</span></li>
    <li><span class="function"><a href="function.phpinfo.php" class="function" rel="rdfs-seeAlso">phpinfo()</a> - Liefert Informationen zur PHP-Konfiguration</span></li>
    <li><a href="configuration.file.php" class="link">The configuration file</a></li>
   </ul>
  </p>
 </div>


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