Files
php-doc-ru/reference/nsapi/functions/nsapi-request-headers.xml
sergey 4a8c7360f1 upd: actual en-revision
git-svn-id: https://svn.php.net/repository/phpdoc/ru/trunk@347590 c90b9560-bf6c-de11-be94-00142212c4b1
2019-06-11 14:01:25 +00:00

83 lines
2.5 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 508e255fff6c604c31d5617fe9ddf6d776a3b43d Maintainer: rjhdby Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.nsapi-request-headers" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>nsapi_request_headers</refname>
<refpurpose>Извлечь все заголовки HTTP-запроса</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>nsapi_request_headers</methodname>
<void/>
</methodsynopsis>
<para>
<function>nsapi_request_headers</function> возвращает все заголовки HTTP в
текущем запросе. Поддерживается только, если PHP запущен как модуль
<productname>NSAPI</productname>.
</para>
<note>
<para>
<function>getallheaders</function> является синонимом функции
<function>nsapi_request_headers</function>, если вы используете модуль NSAPI.
</para>
</note>
<note>
<para>
Также вы можете значение обычных переменных CGI, взяв их из суперглобального
массива <varname>$_SERVER</varname>, который доступен независимо от
того, используете ли вы PHP в качестве модуля <productname>NSAPI</productname>.
</para>
</note>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Возвращает ассоциативный массив со всеми заголовками HTTP.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Пример использования <function>nsapi_request_headers</function></title>
<programlisting role="php">
<![CDATA[
<?php
$headers = nsapi_request_headers();
foreach ($headers as $header => $value) {
echo "$header: $value <br />\n";
}
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
</refentry>
<!-- 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
-->