1
0
mirror of https://github.com/php/doc-ja.git synced 2026-03-24 15:12:22 +01:00
Files
archived-doc-ja/reference/stream/contexts.xml
2010-03-29 00:47:47 +00:00

54 lines
2.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: takagi Status: ready -->
<!-- CREDITS: shimooka,hirokawa -->
<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>
さらに、<function>stream_context_set_params</function> を使うことで、
<literal>パラメータ</literal> を、<literal>コンテキスト</literal>
に対し指定することができます。
</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
-->