<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.url.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'url.constants.php',
    1 => 'Constantes pr&eacute;-d&eacute;finies',
    2 => 'Constantes pr&eacute;-d&eacute;finies',
  ),
  'up' => 
  array (
    0 => 'book.url.php',
    1 => 'URLs',
  ),
  'prev' => 
  array (
    0 => 'book.url.php',
    1 => 'URLs',
  ),
  'next' => 
  array (
    0 => 'ref.url.php',
    1 => 'Fonctions URL',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/url/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="url.constants" class="appendix">
 <h1 class="title">Constantes pré-définies</h1>

 <p class="simpara">Ces constantes sont définies par cette
extension, et ne sont disponibles que si cette extension a été compilée avec
PHP, ou bien chargée au moment de l&#039;exécution.</p>
 <p class="para">
  Les constantes suivantes sont prévues pour être utilisées avec la fonction
  <span class="function"><a href="function.parse-url.php" class="function">parse_url()</a></span>.
 </p>
 <dl>
  
   <dt id="constant.php-url-scheme">
    <strong><code><a href="url.constants.php#constant.php-url-scheme">PHP_URL_SCHEME</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.php-url-host">
    <strong><code><a href="url.constants.php#constant.php-url-host">PHP_URL_HOST</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Affiche le nom d&#039;hôte de l&#039;URL analysée.
    </span>
   </dd>
  
  
   <dt id="constant.php-url-port">
    <strong><code><a href="url.constants.php#constant.php-url-port">PHP_URL_PORT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Affiche le port de l&#039;URL analysée.
    </span>
   </dd>
  
  
   <dt id="constant.php-url-user">
    <strong><code><a href="url.constants.php#constant.php-url-user">PHP_URL_USER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Affiche l&#039;utilisateur de l&#039;URL analysée.
    </span>
   </dd>
  
  
   <dt id="constant.php-url-pass">
    <strong><code><a href="url.constants.php#constant.php-url-pass">PHP_URL_PASS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Affiche le mot de passe de l&#039;URL analysée.
    </span>
   </dd>
  
  
   <dt id="constant.php-url-path">
    <strong><code><a href="url.constants.php#constant.php-url-path">PHP_URL_PATH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Affiche le chemin de l&#039;URL analysée.
    </span>
   </dd>
  
  
   <dt id="constant.php-url-query">
    <strong><code><a href="url.constants.php#constant.php-url-query">PHP_URL_QUERY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Affiche les paramètres de requête de l&#039;URL analysée.
    </span>
   </dd>
  
  
   <dt id="constant.php-url-fragment">
    <strong><code><a href="url.constants.php#constant.php-url-fragment">PHP_URL_FRAGMENT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Affiche le fragment (la chaîne après le caractère #) de l&#039;URL analysée.
    </span>
   </dd>
  
 </dl>
 <p class="para">
  Les constantes suivantes sont prévues pour être utilisées avec
  <span class="function"><a href="function.http-build-query.php" class="function">http_build_query()</a></span>.
 </p>
 <dl>
  
   <dt id="constant.php-query-rfc1738">
    <strong><code><a href="url.constants.php#constant.php-query-rfc1738">PHP_QUERY_RFC1738</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     L&#039;encodage est effectué conformément à la
     <a href="https://datatracker.ietf.org/doc/html/rfc1738" class="link external">&raquo;&nbsp;RFC 1738</a> et le type de média
     <code class="literal">application/x-www-form-urlencoded</code>, ce qui implique
     que les espaces sont encodés avec des signes plus (<code class="literal">+</code>).
    </span>
   </dd>
  
  
   <dt id="constant.php-query-rfc3986">
    <strong><code><a href="url.constants.php#constant.php-query-rfc3986">PHP_QUERY_RFC3986</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     L&#039;encodage est effectué conformément à la <a href="https://datatracker.ietf.org/doc/html/rfc3986" class="link external">&raquo;&nbsp;RFC 3986</a>,
     et les espaces seront encodés en percent-encoding (encodage en pourcent) (<code class="literal">%20</code>).
    </span>
   </dd>
  
 </dl>
</div>
<?php manual_footer($setup); ?>