mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336511 c90b9560-bf6c-de11-be94-00142212c4b1
153 lines
3.8 KiB
XML
153 lines
3.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<appendix xml:id="url.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
&reftitle.constants;
|
|
&extension.constants;
|
|
<para>
|
|
The following constants are meant to be used with
|
|
<function>parse_url</function> and are available since PHP 5.1.2.
|
|
</para>
|
|
<variablelist>
|
|
<varlistentry xml:id="constant.php-url-scheme">
|
|
<term>
|
|
<constant>PHP_URL_SCHEME</constant>
|
|
(<type>integer</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.php-url-host">
|
|
<term>
|
|
<constant>PHP_URL_HOST</constant>
|
|
(<type>integer</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Outputs the hostname of the URL parsed.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.php-url-port">
|
|
<term>
|
|
<constant>PHP_URL_PORT</constant>
|
|
(<type>integer</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Outputs the port of the URL parsed.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.php-url-user">
|
|
<term>
|
|
<constant>PHP_URL_USER</constant>
|
|
(<type>integer</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Outputs the user of the URL parsed.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.php-url-pass">
|
|
<term>
|
|
<constant>PHP_URL_PASS</constant>
|
|
(<type>integer</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Outputs the password of the URL parsed.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.php-url-path">
|
|
<term>
|
|
<constant>PHP_URL_PATH</constant>
|
|
(<type>integer</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Outputs the path of the URL parsed.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.php-url-query">
|
|
<term>
|
|
<constant>PHP_URL_QUERY</constant>
|
|
(<type>integer</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Outputs the query string of the URL parsed.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.php-url-fragment">
|
|
<term>
|
|
<constant>PHP_URL_FRAGMENT</constant>
|
|
(<type>integer</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Outputs the fragment (string after the hashmark #) of the URL parsed.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
<para>
|
|
The following constants are meant to be used with
|
|
<function>http_build_query</function>.
|
|
</para>
|
|
<variablelist>
|
|
<varlistentry xml:id="constant.php-query-rfc1738">
|
|
<term>
|
|
<constant>PHP_QUERY_RFC1738</constant>
|
|
(<type>integer</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Encoding is performed per
|
|
<link xlink:href="&url.rfc;1738">RFC 1738</link> and the
|
|
<literal>application/x-www-form-urlencoded</literal> media type, which
|
|
implies that spaces are encoded as plus (<literal>+</literal>) signs.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.php-query-rfc3986">
|
|
<term>
|
|
<constant>PHP_QUERY_RFC3986</constant>
|
|
(<type>integer</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Encoding is performed according to <link xlink:href="&url.rfc;3986">RFC 3986</link>,
|
|
and spaces will be percent encoded (<literal>%20</literal>).
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</appendix>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|