<?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 => 'fr',
  ),
  'this' => 
  array (
    0 => 'network.constants.php',
    1 => 'Constantes pr&eacute;-d&eacute;finies',
    2 => 'Constantes pr&eacute;-d&eacute;finies',
  ),
  'up' => 
  array (
    0 => 'book.network.php',
    1 => 'R&eacute;seau',
  ),
  'prev' => 
  array (
    0 => 'network.resources.php',
    1 => 'Types de ressources',
  ),
  'next' => 
  array (
    0 => 'ref.network.php',
    1 => 'Fonctions r&eacute;seaux',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    '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">Constantes pré-définies</h1>

 <p class="simpara">Les constantes listées ici sont
toujours disponibles dans PHP.</p>
 <dl>
  <strong class="title">
   <code class="parameter">flags</code> disponibles pour 
   <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">
     Si une erreur se produit lors de l&#039;envoi des données au journal système,
     écrire directement sur la console système.
    </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">
     Ouvrir immédiatement la connexion au journal.
    </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">
     Retarder l&#039;ouverture de la connexion jusqu&#039;à l&#039;enregistrement du premier message.
     C&#039;est le comportement par défaut.
    </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">
     Enregistrer également les messages dans <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">
     Inclure l&#039;ID de processus (PID) avec chaque message journal.
    </span>
   </dd>
  
 </dl>

 <dl>
  <strong class="title">
   <code class="parameter">facility</code> disponibles pour
   <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">
     Pour les messages de sécurité ou d&#039;autorisation.
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <span class="simpara">
      Utiliser <strong><code><a href="network.constants.php#constant.log-authpriv">LOG_AUTHPRIV</a></code></strong> à la place lorsque disponible.
     </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">
     Pour les messages de sécurité ou d&#039;autorisation privés.
    </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">
     Pour les messages du démon de planification.
     Par exemple, <strong class="command">cron</strong> ou <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">
     Pour les messages des démons système.
    </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">
     Pour les messages du noyau.
    </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">
     Réservé à un usage local.
    </span>
    <div class="warning"><strong class="warning">Avertissement</strong>
     <p class="simpara">
      Non disponible sur 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">
     Réservé à un usage local.
    </span>
    <div class="warning"><strong class="warning">Avertissement</strong>
     <p class="simpara">
      Non disponible sur 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">
     Réservé pour un usage local.
    </span>
    <div class="warning"><strong class="warning">Avertissement</strong>
     <p class="simpara">
      Non disponible sur 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">
     Réservé pour un usage local.
    </span>
    <div class="warning"><strong class="warning">Avertissement</strong>
     <p class="simpara">
      Non disponible sur 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">
     Réservé pour un usage local.
    </span>
    <div class="warning"><strong class="warning">Avertissement</strong>
     <p class="simpara">
      Non disponible sur 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">
     Réservé pour un usage local.
    </span>
    <div class="warning"><strong class="warning">Avertissement</strong>
     <p class="simpara">
      Non disponible sur 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">
     Réservé pour un usage local.
    </span>
    <div class="warning"><strong class="warning">Avertissement</strong>
     <p class="simpara">
      Non disponible sur 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">
     Réservé pour un usage local.
    </span>
    <div class="warning"><strong class="warning">Avertissement</strong>
     <p class="simpara">
      Non disponible sur 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">
     Pour les messages provenant du sous-système de l&#039;imprimante en ligne.
    </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">
     Pour les messages provenant du sous-système de messagerie.
    </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">
     Pour les messages provenant du sous-système de nouvelles USENET.
    </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">
     Pour les messages générés en interne par <strong class="command">syslogd</strong>.
    </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">
     Pour les messages génériques au niveau de l&#039;utilisateur.
    </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">
     Pour les messages provenant du sous-système UUCP.
    </span>
   </dd>
  
 </dl>

 <dl>
  <strong class="title">
   Priorités disponibles pour
   <span class="function"><a href="function.syslog.php" class="function">syslog()</a></span>
  </strong>

  <p class="simpara">
   Les constantes de priorité sont listées de l&#039;urgence aux messages de débogage.
  </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">
     Urgence, le système est inutilisable.
     Cela correspond à une condition de panique.
     Habituellement diffusé à tous les processus.
    </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">
     Alerte, une action immédiate est requise.
     Par exemple, une base de données système corrompue.
    </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">
     Critique, une action est requise.
     Par exemple, une erreur matérielle.
    </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">
     Messages d&#039;erreur.
    </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">
     Messages d&#039;avertissement.
    </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">
     Messages de notification, correspondant à des conditions qui ne sont pas des erreurs,
     mais qui peuvent nécessiter un traitement spécial.
    </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">
     Messages informatifs.
    </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">
     Messages de débogage contenant des informations généralement utiles uniquement lors
     du débogage d&#039;un programme.
    </span>
   </dd>
  
</dl>

<dl>
  <strong class="title">
   Types disponibles pour
   <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">
     Tout enregistrement de ressource.
     Sur la plupart des systèmes, cela renvoie tous les enregistrements de ressources,
     cependant, en raison des particularités des performances de
     <code class="literal">libresolv</code> entre les plateformes, cela n&#039;est pas garanti.
    </span>
    <span class="simpara">
     Le plus lent <strong><code><a href="network.constants.php#constant.dns-all">DNS_ALL</a></code></strong> collectera tous les enregistrements plus fiablement.
    </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">
     Requête itérative du serveur de noms pour chaque type d&#039;enregistrement disponible.
    </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">
     Enregistrement d&#039;adresse IPv4.
    </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">
     Ressource d&#039;adresse IPv6.
    </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">
     Défini dans les premières spécifications IPv6, mais rétrogradé en historique par
     <a href="https://datatracker.ietf.org/doc/html/rfc6563" class="link external">&raquo;&nbsp;RFC 6563</a>.
    </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">
     Ressource d&#039;autorisation d&#039;autorité de certification.
     Disponible à partir de PHP 7.0.16 et 7.1.2.
    </span>
    <div class="warning"><strong class="warning">Avertissement</strong>
     <p class="simpara">
      Non disponible sous 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">
     Ressource d&#039;alias (Nom canonique).
    </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">
     Ressource d&#039;information sur l&#039;hôte.
     Pour plus d&#039;explications et de significations de ces valeurs, consulter la page de l&#039;IANA sur
     <a href="http://www.iana.org/assignments/operating-system-names" class="link external">&raquo;&nbsp;Noms des systèmes d&#039;exploitation</a>.
    </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">
     Ressource d&#039;échangeur de courrier.
    </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">
     Pointeur d&#039;autorité de nom.
    </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">
     Ressource du serveur de noms autoritaire.
    </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">
     Ressource de pointeur.
    </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">
     Ressource de début d&#039;autorité.
    </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">
     Localisateur de service.
    </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">
     Ressource de texte.
    </span>
   </dd>
  
 </dl>

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