svn: /phpdoc/ru/trunk/reference/url/functions/ get-headers.xml
| From: | Max Chaban | Date: | Sun, 18 Sep 2011 19:25:18 +0000 |
| Subject: | svn: /phpdoc/ru/trunk/reference/url/functions/ get-headers.xml | ||
| Groups: | php.doc.ru | ||
| Request: | Send a blank email to doc-ru+get-2708@lists.php.net to get a copy of this message | ||
mch Sun, 18 Sep 2011 19:25:18 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=316946
Log:
Updated translation of reference/usr/functions/get-headers.xml.
Changed paths:
U phpdoc/ru/trunk/reference/url/functions/get-headers.xml
Modified: phpdoc/ru/trunk/reference/url/functions/get-headers.xml
===================================================================
--- phpdoc/ru/trunk/reference/url/functions/get-headers.xml 2011-09-18 19:10:43 UTC (rev 316945)
+++ phpdoc/ru/trunk/reference/url/functions/get-headers.xml 2011-09-18 19:25:18 UTC (rev 316946)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 316915 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.get-headers" xmlns="http://docbook.org/ns/docbook">
@@ -72,7 +72,7 @@
<entry>
Эта функция теперь использует stream context
по-умолчанию,
который может быть установлен или изменен при
помощи функции
- <function>stream_context_get_default</function>.
+ <function>stream_context_set_default</function>.
</entry>
</row>
</tbody>
@@ -128,6 +128,25 @@
]]>
</screen>
</example>
+ <example>
+ <title>Пример использования запроса HEAD в
функции<function>get_headers</function></title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+// По умолчанию функция get_headers использует GET-запрос для
получения заголовков. Если
+// вы хотите вместо него отправить HEAD-запрос, то это
можно сделать следующим образом, используя stream context:
+stream_context_set_default(
+ array(
+ 'http' => array(
+ 'method' => 'HEAD'
+ )
+ )
+);
+$headers = get_headers('http://example.com');
+?>
+]]>
+ </programlisting>
+ </example>
</para>
</refsect1>
@@ -152,4 +171,4 @@
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
--->
+-->
\ No newline at end of file