Files
php-doc-ru/reference/stream/contexts.xml
2024-06-26 05:14:10 +03:00

47 lines
2.0 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"?>
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: mch Status: ready -->
<!-- Reviewed: no -->
<chapter xml:id="stream.contexts" xmlns="http://docbook.org/ns/docbook">
<title>Контексты потоков</title>
<simpara>
<literal>Контекст</literal> — набор <literal>параметров</literal>
и зависящих от обёртки <literal>опций</literal>, который изменяет или расширяет
поведение потока. <literal>Контексты</literal> создаются функцией
<function>stream_context_create</function> и могут передаваться большей части
функций файловой системы, которые связаны с созданием потоков (например, <function>fopen</function>,
<function>file</function>, <function>file_get_contents</function> и другие).
</simpara>
<simpara>
<literal>Опции</literal> указывают при вызове функции
<function>stream_context_create</function> или позже — через функцию
<function>stream_context_set_option</function>.
Список <literal>опций</literal> для обёрток приводит глава
«<xref linkend="context" />».
</simpara>
<simpara>
<literal>Параметры</literal> для <literal>контекстов</literal>
указывают функцией <function>stream_context_set_params</function>.
</simpara>
</chapter>
<!-- 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
-->