cvs: phpdoc-ja /reference/curl/functions curl-setopt.xml
| From: | TAKAGI Masahiro | Date: | Sun, 30 Mar 2008 21:00:14 +0000 |
| Subject: | cvs: phpdoc-ja /reference/curl/functions curl-setopt.xml | ||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-2292@lists.php.net to get a copy of this message | ||
takagi Sun Mar 30 21:00:14 2008 UTC
Modified files:
/phpdoc-ja/reference/curl/functions curl-setopt.xml
Log:
sync with en.
http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/curl/functions/curl-setopt.xml?r1=1.15&r2=1.16&diff_format=u
Index: phpdoc-ja/reference/curl/functions/curl-setopt.xml
diff -u phpdoc-ja/reference/curl/functions/curl-setopt.xml:1.15
phpdoc-ja/reference/curl/functions/curl-setopt.xml:1.16
--- phpdoc-ja/reference/curl/functions/curl-setopt.xml:1.15 Sat Mar 8 04:57:38 2008
+++ phpdoc-ja/reference/curl/functions/curl-setopt.xml Sun Mar 30 21:00:14 2008
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision: 1.15 $ -->
-<!-- EN-Revision: 1.28 Maintainer: hirokawa Status: ready -->
+<!-- $Revision: 1.16 $ -->
+<!-- EN-Revision: 1.30 Maintainer: hirokawa Status: ready -->
<!-- CREDITS: takagi -->
<refentry xml:id="function.curl-setopt" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
@@ -779,7 +779,7 @@
<entry>
HTTP "POST"
ã§éä¿¡ãããã¹ã¦ã®ãã¼ã¿ã
ãã¡ã¤ã«ãéä¿¡ããã«ã¯ããã¡ã¤ã«åã®å
é ã«
<literal>@</literal>
- ãã¤ãã¾ãã
+
ãã¤ãã¦ãã«ãã¹ãæå®ãã¾ãã
</entry>
<entry>
</entry>
@@ -1135,9 +1135,7 @@
&reftitle.examples;
<para>
<example>
- <title>
- æ°è¦ã« cURL
ã»ãã·ã§ã³ãåæåãã¦ã§ããã¼ã¸ãåå¾ãã
- </title>
+ <title>æ°è¦ã« cURL
ã»ãã·ã§ã³ãåæåãã¦ã§ããã¼ã¸ãåå¾ãã</title>
<programlisting role="php">
<![CDATA[
<?php
@@ -1158,6 +1156,54 @@
</programlisting>
</example>
</para>
+ <para>
+ <example>
+ <title>ãã¡ã¤ã«ã®ã¢ãããã¼ã</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+/* http://localhost/upload.php:
+print_r($_POST);
+print_r($_FILES);
+*/
+
+$ch = curl_init();
+
+$data = array('name' => 'Foo', 'file' =>
'@/home/user/test.png');
+
+curl_setopt($ch, CURLOPT_URL, 'http://localhost/upload.php');
+curl_setopt($ch, CURLOPT_POST, 1);
+curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
+
+curl_exec($ch);
+?>
+]]>
+ </programlisting>
+ &example.outputs;
+ <screen>
+<![CDATA[
+Array
+(
+ [name] => Foo
+)
+Array
+(
+ [file] => Array
+ (
+ [name] => test.png
+ [type] => image/png
+ [tmp_name] => /tmp/phpcpjNeQ
+ [error] => 0
+ [size] => 279
+ )
+
+)
+
+]]>
+ </screen>
+ </example>
+ </para>
</refsect1>
<refsect1 role="seealso">