<?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.phpinfo.php',
    1 => 'phpinfo',
    2 => 'Liefert Informationen zur PHP-Konfiguration',
  ),
  'up' => 
  array (
    0 => 'ref.info.php',
    1 => 'PHP-Optionen-/-Informationen-Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.phpcredits.php',
    1 => 'phpcredits',
  ),
  'next' => 
  array (
    0 => 'function.phpversion.php',
    1 => 'phpversion',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/info/functions/phpinfo.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.phpinfo" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">phpinfo</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">phpinfo</span> &mdash; <span class="dc-title">Liefert Informationen zur PHP-Konfiguration</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.phpinfo-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>phpinfo</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$flags</code><span class="initializer"> = <strong><code><a href="info.constants.php#constant.info-all">INFO_ALL</a></code></strong></span></span>): <span class="type"><a href="language.types.singleton.php" class="type true">true</a></span></div>

  <p class="para rdfs-comment">
   Zeigt eine große Anzahl von Informationen über den aktuellen Zustand von
   PHP an. Dies umfasst Informationen über die Optionen während des
   Kompilierens und die Erweiterungen, die PHP-Version, Server-Informationen
   und -Umgebung (falls als Modul kompiliert), die PHP-Umgebung,
   Versionsinformationen zum Betriebssystem, Pfade, Master- und lokale Werte
   der Konfigurationsoptionen, HTTP-Header und die PHP-Lizenz.
  </p>
  <p class="para">
   Weil jedes System anders installiert ist, wird <span class="function"><strong>phpinfo()</strong></span>
   oft genutzt, um die
   <a href="configuration.php" class="link">Konfigurationseinstellungen</a> und die
   verfügbaren
   <a href="language.variables.predefined.php" class="link">vordefinierten Variablen</a>
   auf einem System zu prüfen.
  </p>
  <p class="para">
   <span class="function"><strong>phpinfo()</strong></span> ist außerdem ein wertvolles Debugging-Tool, da
   es alle EGPCS-Daten (Environment, GET, POST, Cookie, Server) enthält.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.phpinfo-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">flags</code></dt>
     <dd>
      <p class="para">
       Die Ausgabe kann durch die bitweise summierte Angabe von einer oder
       mehrerer der folgenden <em>Konstanten</em> im optionalen
       Parameter <code class="parameter">flags</code> angepasst werden. Die Konstanten
       oder Bitwerte können auch mit dem
       <a href="language.operators.bitwise.php" class="link">binären Oder-Operator</a>
       kombiniert werden.
      </p>
      <p class="para">
       <table class="doctable table">
        <caption><strong><span class="function"><strong>phpinfo()</strong></span>-Optionen</strong></caption>
        
         <thead>
          <tr>
           <th>Name (Konstante)</th>
           <th>Wert</th>
           <th>Beschreibung</th>
          </tr>

         </thead>

         <tbody class="tbody">
          <tr>
           <td>INFO_GENERAL</td>
           <td>1</td>
           <td>
            Die Konfigurationszeile, der Ort der <var class="filename">php.ini</var>, das
            Übersetzungsdatum, der Webserver, das System und mehr.
           </td>
          </tr>

          <tr>
           <td>INFO_CREDITS</td>
           <td>2</td>
           <td>
            PHP-Credits. Siehe auch <span class="function"><a href="function.phpcredits.php" class="function">phpcredits()</a></span>.
           </td>
          </tr>

          <tr>
           <td>INFO_CONFIGURATION</td>
           <td>4</td>
           <td>
            Aktueller lokaler und Master-Wert der PHP-Direktiven. Siehe auch
            <span class="function"><a href="function.ini-get.php" class="function">ini_get()</a></span>.
           </td>
          </tr>

          <tr>
           <td>INFO_MODULES</td>
           <td>8</td>
           <td>
            Die geladenenen Module und ihre jeweiligen Einstellungen. Siehe
            auch <span class="function"><a href="function.get-loaded-extensions.php" class="function">get_loaded_extensions()</a></span>.
           </td>
          </tr>

          <tr>
           <td>INFO_ENVIRONMENT</td>
           <td>16</td>
           <td>
            Informationen über die Umgebungsvariablen, die auch in
            <var class="varname"><a href="reserved.variables.environment.php" class="classname">$_ENV</a></var> verfügbar sind.
           </td>
          </tr>

          <tr>
           <td>INFO_VARIABLES</td>
           <td>32</td>
           <td>
            Zeigt alle
            <a href="language.variables.predefined.php" class="link">vordefinierten Variablen</a>
            aus EGPCS (Environment, GET, POST, Cookie,
            Server).
           </td>
          </tr>

          <tr>
           <td>INFO_LICENSE</td>
           <td>64</td>
           <td>
            PHP-Lizenz-Informationen. Siehe auch
            <a href="https://www.php.net/license/" class="link external">&raquo;&nbsp;Lizenz-FAQ</a>.
           </td>
          </tr>

          <tr>
           <td>INFO_ALL</td>
           <td>-1</td>
           <td>
            Zeigt alle genannten Informationen.
           </td>
          </tr>

         </tbody>
        
       </table>

      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.phpinfo-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Gibt immer <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> zurück.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.phpinfo-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Beispiel #1 <span class="function"><strong>phpinfo()</strong></span>-Beispiel</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #FF8000">// Zeigt alle Informationen (Standardwert ist INFO_ALL)<br /></span><span style="color: #0000BB">phpinfo</span><span style="color: #007700">();<br /><br /></span><span style="color: #FF8000">// Zeigt nur die Modul-Informationen.<br />// phpinfo(8) führt zum gleichen Ergebnis.<br /></span><span style="color: #0000BB">phpinfo</span><span style="color: #007700">(</span><span style="color: #0000BB">INFO_MODULES</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.phpinfo-notes">
  <h3 class="title">Anmerkungen</h3>
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
   <p class="para">
    In PHP-Versionen vor 5.5 sind Teile der angezeigten Informationen
    deaktiviert, wenn die Konfigurationseinstellung
    <a href="ini.core.php#ini.expose-php" class="link">expose_php</a> auf
    <code class="literal">off</code> eingestellt ist. Das beinhaltet die PHP- und
    Zend-Logos und die Danksagung.
   </p>
  </p></blockquote>
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
   <p class="para">
    Wenn <span class="function"><strong>phpinfo()</strong></span> im CLI-Modus verwendet wird, gibt es
    reinen Text statt HTML aus.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.phpinfo-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.phpversion.php" class="function" rel="rdfs-seeAlso">phpversion()</a> - Liefert die aktuelle PHP-Version</span></li>
    <li><span class="function"><a href="function.phpcredits.php" class="function" rel="rdfs-seeAlso">phpcredits()</a> - Prints out the credits for PHP</span></li>
    <li><span class="function"><a href="function.ini-get.php" class="function" rel="rdfs-seeAlso">ini_get()</a> - Gets the value of a configuration option</span></li>
    <li><span class="function"><a href="function.ini-set.php" class="function" rel="rdfs-seeAlso">ini_set()</a> - Sets the value of a configuration option</span></li>
    <li><span class="function"><a href="function.get-loaded-extensions.php" class="function" rel="rdfs-seeAlso">get_loaded_extensions()</a> - Liefert ein Array mit den Namen aller einkompilierten und geladenen
   Erweiterungen</span></li>
    <li><a href="language.variables.predefined.php" class="link">vordefinierte Variable</a></li>
   </ul>
  </p>
 </div>


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