Home  |  Linux  | Mysql  | PHP  | XML
From:TAKAGI Masahiro Date:Sun Aug 17 22:06:55 2008
Subject:cvs: phpdoc-ja /reference/filesystem/functions ftell.xml /reference/stream/functions stream-context-get-default.xml stream-context-set-default.xml
takagi		Mon Aug 18 04:06:55 2008 UTC

  Added files:                 
    /phpdoc-ja/reference/stream/functions	
                                         	stream-context-set-default.xml 

  Modified files:              
    /phpdoc-ja/reference/stream/functions	
                                         	stream-context-get-default.xml 
    /phpdoc-ja/reference/filesystem/functions	ftell.xml 
  Log:
  sync with en.
  
  
http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/stream/functions/stream-context-get-default.xml?r1=1.3&r2=1.4&diff_format=u
Index: phpdoc-ja/reference/stream/functions/stream-context-get-default.xml
diff -u phpdoc-ja/reference/stream/functions/stream-context-get-default.xml:1.3 phpdoc-ja/reference/stream/functions/stream-context-get-default.xml:1.4
--- phpdoc-ja/reference/stream/functions/stream-context-get-default.xml:1.3	Sat Jan 12 02:40:14 2008
+++ phpdoc-ja/reference/stream/functions/stream-context-get-default.xml	Mon Aug 18 04:06:55 2008
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- $Revision: 1.3 $ -->
-<!-- EN-Revision: 1.4 Maintainer: takagi Status: ready -->
+<!-- $Revision: 1.4 $ -->
+<!-- EN-Revision: 1.5 Maintainer: takagi Status: ready -->
 <refentry xml:id="function.stream-context-get-default" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
   <refname>stream_context_get_default</refname>
@@ -24,6 +24,12 @@
    <literal>$arr['wrapper']['option'] = $value</literal>
    のような形式の、連想配列の連想配列である必要があります。
   </simpara>
+  <note>
+   <para>
+    PHP 5.3.0 以降では、<function>stream_context_set_default</function>
+    関数でデフォルトのコンテキストを設定することが可能です。
+   </para>
+  </note>
   <example>
    <title><function>stream_context_get_default</function> の使用</title>
    <programlisting role="php">
http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/filesystem/functions/ftell.xml?r1=1.9&r2=1.10&diff_format=u
Index: phpdoc-ja/reference/filesystem/functions/ftell.xml
diff -u phpdoc-ja/reference/filesystem/functions/ftell.xml:1.9 phpdoc-ja/reference/filesystem/functions/ftell.xml:1.10
--- phpdoc-ja/reference/filesystem/functions/ftell.xml:1.9	Sat Jul 28 20:51:51 2007
+++ phpdoc-ja/reference/filesystem/functions/ftell.xml	Mon Aug 18 04:06:55 2008
@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision: 1.9 $ -->
-<!-- EN-Revision: 1.10 Maintainer: hirokawa Status: ready -->
+<!-- $Revision: 1.10 $ -->
+<!-- EN-Revision: 1.11 Maintainer: hirokawa Status: ready -->
 <!-- CREDITS: shimooka -->
 <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.ftell">
  <refnamediv>
   <refname>ftell</refname>
-  <refpurpose>ファイルポインタから読み書きの位置を取得する</refpurpose>
+  <refpurpose>ファイルの読み書き用ポインタの現在位置を返す</refpurpose>
  </refnamediv>
  
  <refsect1 role="description">
@@ -15,7 +15,7 @@
    <methodparam><type>resource</type><parameter>handle</parameter></methodparam>
   </methodsynopsis>
   <para>
-   ファイルポインタから読み書きの位置を取得します。
+   <parameter>handle</parameter> ファイルの読み書き用ポインタの現在位置を返します。
   </para>
  </refsect1>
 
@@ -43,7 +43,7 @@
   &reftitle.returnvalues;
   <para>
    <parameter>handle</parameter> が示すファイルポインタの位置、
-   すなわちファイル・ストリーム上のオフセットを返します。
+   すなわちファイル・ストリーム上のオフセットを整数値で返します。
   </para>
   <para>
    エラーが起こった場合 &false; を返します。

http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/stream/functions/stream-context-set-default.xml?view=markup&rev=1.1
Index: phpdoc-ja/reference/stream/functions/stream-context-set-default.xml
+++ phpdoc-ja/reference/stream/functions/stream-context-set-default.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.1 $ -->
<!-- EN-Revision: 1.1 Maintainer: takagi Status: ready -->
<refentry xml:id="function.stream-context-set-default" xmlns="http://docbook.org/ns/docbook">
 <refnamediv>
  <refname>stream_context_set_default</refname>
  <refpurpose>デフォルトのストリームコンテキストを設定する</refpurpose> 
 </refnamediv>
 <refsect1>
  <title>説明</title>
  <methodsynopsis>
   <type>resource</type><methodname>stream_context_set_default</methodname>
   <methodparam><type>array</type><parameter>options</parameter></methodparam>
  </methodsynopsis>
  <simpara>
   (<function>fopen</function>、<function>file_get_contents</function> のような)
   ファイル操作関数がコンテキストパラメータなしでコールされた場合に使用される
   デフォルトのストリームコンテキストを設定します。
   <function>stream_context_create</function> と同じ構文が使用できます。
  </simpara>
  <simpara>
   デフォルトのストリームコンテキストを返します。
  </simpara>
  <simpara>
   <parameter>options</parameter> は、
   <literal>$arr['wrapper']['option'] = $value</literal>
   のような形式の、連想配列の連想配列である必要があります。
  </simpara>
  <example>
   <title><function>stream_context_set_default</function> の使用</title>
   <programlisting role="php">
<![CDATA[
<?php
$default_opts = array(
  'http'=>array(
    'method'=>"GET",
    'header'=>"Accept-language: en\r\n" .
              "Cookie: foo=bar",
    'proxy'=>"tcp://10.54.1.39:8000"
  )
);

$default = stream_context_set_default($default_opts);

/* www.example.com に対する通常の GET リクエストを、プロキシサーバ 10.54.1.39
 * に対して送信します。コンテキストオプション $default_opts を使用します。
 */
readfile('http://www.example.com');
?>
]]>
   </programlisting>
  </example>
  <simpara>
   <function>stream_context_create</function>, <function>stream_context_get_create</function>
   およびサポートされるラッパとそのコンテキストオプション (<xref linkend="wrappers"/>)
   も参照ください。
  </simpara>
 </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:"../../../../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
-->


Navigate in group php.doc.ja at sever news.php.net
Previous Next




  
No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants