<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.network.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'network.constants.php',
    1 => 'Vordefinierte Konstanten',
    2 => 'Vordefinierte Konstanten',
  ),
  'up' => 
  array (
    0 => 'book.network.php',
    1 => 'Network',
  ),
  'prev' => 
  array (
    0 => 'network.resources.php',
    1 => 'Ressource-Typen',
  ),
  'next' => 
  array (
    0 => 'ref.network.php',
    1 => 'Netzwerk-Funktionen',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/network/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="network.constants" class="appendix">
 <h1 class="title">Vordefinierte Konstanten</h1>

 <p class="simpara">Die aufgelisteten Konstanten
stehen immer zur Verfügung, da sie zum Grundbestand von PHP gehören.</p>

 <dl>
  <strong class="title">
   Verfügbare <code class="parameter">flags</code> für
   <span class="function"><a href="function.openlog.php" class="function">openlog()</a></span>
  </strong>

  
   <dt id="constant.log-cons">
    <strong><code><a href="network.constants.php#constant.log-cons">LOG_CONS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Tritt beim Senden der Daten an den Systemlogger ein Fehler auf, direkt in
     die Systemkonsole schreiben.
    </span>
   </dd>
  

  
   <dt id="constant.log-ndelay">
    <strong><code><a href="network.constants.php#constant.log-ndelay">LOG_NDELAY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Öffnet die Verbindung zum Logger sofort.
    </span>
   </dd>
  

  
   <dt id="constant.log-odelay">
    <strong><code><a href="network.constants.php#constant.log-odelay">LOG_ODELAY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Öffnet die Verbindung erst, wenn die erste Meldung geloggt werden soll.
     Das ist die Standardeinstellung.
    </span>
   </dd>
  

  
   <dt id="constant.log-nowait">
    <strong><code><a href="network.constants.php#constant.log-nowait">LOG_NOWAIT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    </span>
   </dd>
  

  
   <dt id="constant.log-perror">
    <strong><code><a href="network.constants.php#constant.log-perror">LOG_PERROR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Schreibt Log-Meldungen zusätzlich nach <strong><code><a href="reserved.constants.php#constant.stderr">STDERR</a></code></strong>.
    </span>
   </dd>
  

  
   <dt id="constant.log-pid">
    <strong><code><a href="network.constants.php#constant.log-pid">LOG_PID</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Fügt die PID an jede Log-Meldung an.
    </span>
   </dd>
  
 </dl>

 <dl>
  <strong class="title">
   Verfügbare <code class="parameter">facility</code> für
   <span class="function"><a href="function.openlog.php" class="function">openlog()</a></span>
  </strong>

  
   <dt id="constant.log-auth">
    <strong><code><a href="network.constants.php#constant.log-auth">LOG_AUTH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Für Sicherheits-/Authorisierungsmeldungen
    </span>
    <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
     <span class="simpara">
      Stattdessen sollte <strong><code><a href="network.constants.php#constant.log-authpriv">LOG_AUTHPRIV</a></code></strong> verwendet werden,
      wenn verfügbar.
     </span>
    </p></blockquote>
   </dd>
  

  
   <dt id="constant.log-authpriv">
    <strong><code><a href="network.constants.php#constant.log-authpriv">LOG_AUTHPRIV</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Für vertrauliche Sicherheits-/Authorisierungsmeldungen.
    </span>
   </dd>
  

  
   <dt id="constant.log-cron">
    <strong><code><a href="network.constants.php#constant.log-cron">LOG_CRON</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Für Meldungen des Uhrzeit-Daemons.
     Zum Beispiel <strong class="command">cron</strong> oder <strong class="command">at</strong>.
    </span>
   </dd>
  

  
   <dt id="constant.log-daemon">
    <strong><code><a href="network.constants.php#constant.log-daemon">LOG_DAEMON</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Für Meldungen des Systemdiensts.
    </span>
   </dd>
  

  
   <dt id="constant.log-kern">
    <strong><code><a href="network.constants.php#constant.log-kern">LOG_KERN</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Für Kernel-Meldungen.
    </span>
   </dd>
  

  
   <dt id="constant.log-local0">
    <strong><code><a href="network.constants.php#constant.log-local0">LOG_LOCAL0</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Reserviert für lokale Nutzung.
    </span>
    <div class="warning"><strong class="warning">Warnung</strong>
     <p class="simpara">
      Nicht verfügbar unter Windows.
     </p>
    </div>
   </dd>
  

  
   <dt id="constant.log-local1">
    <strong><code><a href="network.constants.php#constant.log-local1">LOG_LOCAL1</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Reserviert für lokale Nutzung.
    </span>
    <div class="warning"><strong class="warning">Warnung</strong>
     <p class="simpara">
      Nicht verfügbar unter Windows.
     </p>
    </div>
   </dd>
  

  
   <dt id="constant.log-local2">
    <strong><code><a href="network.constants.php#constant.log-local2">LOG_LOCAL2</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Reserviert für lokale Nutzung.
    </span>
    <div class="warning"><strong class="warning">Warnung</strong>
     <p class="simpara">
      Nicht verfügbar unter Windows.
     </p>
    </div>
   </dd>
  

  
   <dt id="constant.log-local3">
    <strong><code><a href="network.constants.php#constant.log-local3">LOG_LOCAL3</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Reserviert für lokale Nutzung.
    </span>
    <div class="warning"><strong class="warning">Warnung</strong>
     <p class="simpara">
      Nicht verfügbar unter Windows.
     </p>
    </div>
   </dd>
  

  
   <dt id="constant.log-local4">
    <strong><code><a href="network.constants.php#constant.log-local4">LOG_LOCAL4</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Reserviert für lokale Nutzung.
    </span>
    <div class="warning"><strong class="warning">Warnung</strong>
     <p class="simpara">
      Nicht verfügbar unter Windows.
     </p>
    </div>
   </dd>
  

  
   <dt id="constant.log-local5">
    <strong><code><a href="network.constants.php#constant.log-local5">LOG_LOCAL5</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Reserviert für lokale Nutzung.
    </span>
    <div class="warning"><strong class="warning">Warnung</strong>
     <p class="simpara">
      Nicht verfügbar unter Windows.
     </p>
    </div>
   </dd>
  

  
   <dt id="constant.log-local6">
    <strong><code><a href="network.constants.php#constant.log-local6">LOG_LOCAL6</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Reserviert für lokale Nutzung.
    </span>
    <div class="warning"><strong class="warning">Warnung</strong>
     <p class="simpara">
      Nicht verfügbar unter Windows.
     </p>
    </div>
   </dd>
  

  
   <dt id="constant.log-local7">
    <strong><code><a href="network.constants.php#constant.log-local7">LOG_LOCAL7</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Reserviert für lokale Nutzung.
    </span>
    <div class="warning"><strong class="warning">Warnung</strong>
     <p class="simpara">
      Nicht verfügbar unter Windows.
     </p>
    </div>
   </dd>
  

  
   <dt id="constant.log-lpr">
    <strong><code><a href="network.constants.php#constant.log-lpr">LOG_LPR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Für Meldungen des Zeilendrucker-Subsystems.
    </span>
   </dd>
  

  
   <dt id="constant.log-mail">
    <strong><code><a href="network.constants.php#constant.log-mail">LOG_MAIL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Für Meldungen des Mail-Subsystems.
    </span>
   </dd>
  

  
   <dt id="constant.log-news">
    <strong><code><a href="network.constants.php#constant.log-news">LOG_NEWS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Für Meldungen des USENET-News-Subsystems.
    </span>
   </dd>
  

  
   <dt id="constant.log-syslog">
    <strong><code><a href="network.constants.php#constant.log-syslog">LOG_SYSLOG</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Für Meldungen, die intern von <strong class="command">syslogd</strong> erzeugt wurden.
    </span>
   </dd>
  

  
   <dt id="constant.log-user">
    <strong><code><a href="network.constants.php#constant.log-user">LOG_USER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Für generische Meldungen der Benutzerebene.
    </span>
   </dd>
  

  
   <dt id="constant.log-uucp">
    <strong><code><a href="network.constants.php#constant.log-uucp">LOG_UUCP</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Für Meldungen des UUCP-Subsystems.
    </span>
   </dd>
  
 </dl>

 <dl>
  <strong class="title">
   Verfügbare <code class="parameter">priority</code> für
   <span class="function"><a href="function.syslog.php" class="function">syslog()</a></span>
  </strong>

  <p class="simpara">
   Die Konstanten sind nach Priorität geordnet, von dringend bis
   Debug-Meldungen.
  </p>

  
   <dt id="constant.log-emerg">
    <strong><code><a href="network.constants.php#constant.log-emerg">LOG_EMERG</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Notfall; das System ist unbrauchbar.
     Dies entspricht einer Paniksituation.
     Wird normalerweise an alle Prozesse gesendet.
    </span>
   </dd>
  

  
   <dt id="constant.log-alert">
    <strong><code><a href="network.constants.php#constant.log-alert">LOG_ALERT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Warnung; sofortige Maßnahmen sind erforderlich.
     Zum Beispiel eine beschädigte Systemdatenbank.
    </span>
   </dd>
  

  
   <dt id="constant.log-crit">
    <strong><code><a href="network.constants.php#constant.log-crit">LOG_CRIT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Kritisch, es besteht Handlungsbedarf.
     Beispiel: Ein Gerät ist defekt.
    </span>
   </dd>
  

  
   <dt id="constant.log-err">
    <strong><code><a href="network.constants.php#constant.log-err">LOG_ERR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Fehlermeldungen.
    </span>
   </dd>
  

  
   <dt id="constant.log-warning">
    <strong><code><a href="network.constants.php#constant.log-warning">LOG_WARNING</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Warnhinweise.
    </span>
   </dd>
  

  
   <dt id="constant.log-notice">
    <strong><code><a href="network.constants.php#constant.log-notice">LOG_NOTICE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Hinweismeldungen, die Bedingungen entsprechen, die keine Fehlerbedingungen
     sind, aber möglicherweise eine besondere Vorgehensweise erfordern.
    </span>
   </dd>
  

  
   <dt id="constant.log-info">
    <strong><code><a href="network.constants.php#constant.log-info">LOG_INFO</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Informative Meldungen.
    </span>
   </dd>
  

  
   <dt id="constant.log-debug">
    <strong><code><a href="network.constants.php#constant.log-debug">LOG_DEBUG</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Debugging-Meldungen, die Informationen enthalten, die normalerweise nur
     bei der Fehlersuche in einem Programm von Nutzen sind.
    </span>
   </dd>
  
 </dl>

 <dl>
  <strong class="title">
   Verfügbare <code class="parameter">type</code> für
   <span class="function"><a href="function.dns-get-record.php" class="function">dns_get_record()</a></span>
  </strong>

  
   <dt id="constant.dns-any">
    <strong><code><a href="network.constants.php#constant.dns-any">DNS_ANY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Any-Ressource-Eintrag.
     Auf den meisten Systemen werden alle Ressourcen-Einträge zurückgegeben,
     aber aufgrund von Unterschieden in der Leistungsfähigkeit von
     <code class="literal">libresolv</code> auf verschiedenen Plattformen ist dies nicht
     garantiert.
    </span>
    <span class="simpara">
     Die langsamere <strong><code><a href="network.constants.php#constant.dns-all">DNS_ALL</a></code></strong> sammelt alle Einträge
     zuverlässiger.
    </span>
   </dd>
  

  
   <dt id="constant.dns-all">
    <strong><code><a href="network.constants.php#constant.dns-all">DNS_ALL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Iterative Anfrage an den Nameserver für jeden verfügbaren Eintragstyp.
    </span>
   </dd>
  

  
   <dt id="constant.dns-a">
    <strong><code><a href="network.constants.php#constant.dns-a">DNS_A</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     IPv4-Adress-Ressource.
    </span>
   </dd>
  

  
   <dt id="constant.dns-aaaa">
    <strong><code><a href="network.constants.php#constant.dns-aaaa">DNS_AAAA</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     IPv6-Adress-Ressource.
    </span>
   </dd>
  

  
   <dt id="constant.dns-a6">
    <strong><code><a href="network.constants.php#constant.dns-a6">DNS_A6</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Definiert als Teil des frühen IPv6, aber durch
     <a href="https://datatracker.ietf.org/doc/html/rfc6563" class="link external">&raquo;&nbsp;RFC 6563</a> auf historisch
     zurückgestuft.
    </span>
   </dd>
  

  
   <dt id="constant.dns-caa">
    <strong><code><a href="network.constants.php#constant.dns-caa">DNS_CAA</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Certification Authority Authorization-Resource
     Verfügbar seit PHP 7.0.16 und 7.1.2.
    </span>
    <div class="warning"><strong class="warning">Warnung</strong>
     <p class="simpara">
      Not available on Windows.
     </p>
    </div>
   </dd>
  

  
   <dt id="constant.dns-cname">
    <strong><code><a href="network.constants.php#constant.dns-cname">DNS_CNAME</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Alias (Canonical Name)-Ressource.
    </span>
   </dd>
  

  
   <dt id="constant.dns-hinfo">
    <strong><code><a href="network.constants.php#constant.dns-hinfo">DNS_HINFO</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Hostinfo-Ressource
     Weitere Erklärungen und Bedeutungen dieser Werte sind auf der Seite
     <a href="http://www.iana.org/assignments/operating-system-names" class="link external">&raquo;&nbsp;Operating System Names</a>
     der IANA zu finden.
    </span>
   </dd>
  

  
   <dt id="constant.dns-mx">
    <strong><code><a href="network.constants.php#constant.dns-mx">DNS_MX</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Mail-Exchanger-Ressource.
    </span>
   </dd>
  

  
   <dt id="constant.dns-naptr">
    <strong><code><a href="network.constants.php#constant.dns-naptr">DNS_NAPTR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Naming Authority Pointer.
    </span>
   </dd>
  

  
   <dt id="constant.dns-ns">
    <strong><code><a href="network.constants.php#constant.dns-ns">DNS_NS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Authoritative-Nameserver-Ressource.
    </span>
   </dd>
  

  
   <dt id="constant.dns-ptr">
    <strong><code><a href="network.constants.php#constant.dns-ptr">DNS_PTR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Pointer-Ressource.
    </span>
   </dd>
  

  
   <dt id="constant.dns-soa">
    <strong><code><a href="network.constants.php#constant.dns-soa">DNS_SOA</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Start of Authority-Ressource.
    </span>
   </dd>
  

  
   <dt id="constant.dns-srv">
    <strong><code><a href="network.constants.php#constant.dns-srv">DNS_SRV</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Service-Locator.
    </span>
   </dd>
  

  
   <dt id="constant.dns-txt">
    <strong><code><a href="network.constants.php#constant.dns-txt">DNS_TXT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Text-Ressource.
    </span>
   </dd>
  
 </dl>

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