cvs: phpdoc /ja/functions gettext.xml gmp.xml http.xml hw.xml ibase.xml icap.xml iconv.xml ifx.xml image.xml
| From: | Rui Hirokawa | Date: | Sun, 20 Jan 2002 05:07:01 +0000 |
| Subject: | cvs: phpdoc /ja/functions gettext.xml gmp.xml http.xml hw.xml ibase.xml icap.xml iconv.xml ifx.xml image.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969341462@lists.php.net to get a copy of this message | ||
hirokawa Sun Jan 20 00:07:01 2002 EDT
Modified files:
/phpdoc/ja/functions gettext.xml gmp.xml http.xml hw.xml ibase.xml
icap.xml iconv.xml ifx.xml image.xml
Log:
translation updated.
Index: phpdoc/ja/functions/gettext.xml diff -u phpdoc/ja/functions/gettext.xml:1.8 phpdoc/ja/functions/gettext.xml:1.9 --- phpdoc/ja/functions/gettext.xml:1.8 Wed Dec 12 15:52:58 2001 +++ phpdoc/ja/functions/gettext.xml Sun Jan 20 00:07:01 2002 @@ -1,4 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.9 $ --> <reference id="ref.gettext"> <title>GNU Gettext</title> <titleabbrev>gettext</titleabbrev> @@ -32,6 +33,29 @@ </refsect1> </refentry> + <refentry id='function.bind-textdomain-codeset'> + <refnamediv> + <refname>bind_textdomain_codeset</refname> + <refpurpose> + DOMAINã¡ãã»ã¼ã¸ã«ã¿ãã°ããã®ã¡ãã»ã¼ã¸ã夿´ãããæåã¨ã³ã³ã¼ + ãã£ã³ã°ãæå®ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>bind_textdomain_codeset</function></funcdef> + <paramdef>string <parameter>domain</parameter></paramdef> + <paramdef>string <parameter>codeset</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + <refentry id="function.dcgettext"> <refnamediv> <refname>dcgettext</refname> @@ -54,6 +78,30 @@ </refsect1> </refentry> + <refentry id='function.dcngettext'> + <refnamediv> + <refname>dcngettext</refname> + <refpurpose> + dcgettext()ã®è¤æ°ç</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>dcngettext</function></funcdef> + <paramdef>string <parameter>domain</parameter></paramdef> + <paramdef>string <parameter>msgid1</parameter></paramdef> + <paramdef>string <parameter>msgid2</parameter></paramdef> + <paramdef>int <parameter>n</parameter></paramdef> + <paramdef>int <parameter>category</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + <refentry id="function.dgettext"> <refnamediv> <refname>dgettext</refname> @@ -69,8 +117,30 @@ </funcprototype> </funcsynopsis> <para> - 颿°<function>dgettext</function>ã«ãã - åä¸ã®ã¡ãã»ã¼ã¸åç §ã«ã¤ãã¦ã«ã¬ã³ãã®ãã¡ã¤ã³ã䏿¸ããããã¨ãã§ãã¾ãã + 颿°<function>dgettext</function>ã«ããåä¸ã®ã¡ãã»ã¼ã¸åç §ã«ã¤ã + ã¦ã«ã¬ã³ãã®ãã¡ã¤ã³ã䏿¸ããããã¨ãã§ãã¾ãã + </para> + </refsect1> + </refentry> + + <refentry id='function.dngettext'> + <refnamediv> + <refname>dcngettext</refname> + <refpurpose>dcgettext()ã®è¤æ°åã§ã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>dcngettext</function></funcdef> + <paramdef>string <parameter>domain</parameter></paramdef> + <paramdef>string <parameter>msgid1</parameter></paramdef> + <paramdef>string <parameter>msgid2</parameter></paramdef> + <paramdef>int <parameter>n</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; </para> </refsect1> </refentry> @@ -96,7 +166,8 @@ <example> <title><function>gettext</function>-check</title> <programlisting> -<?php +<![CDATA[ +<?php // ãã¤ãèªã«è¨å®ãã putenv ("LANG=de"); @@ -109,8 +180,30 @@ // ãã¹ãã¡ãã»ã¼ã¸ãåºåãã print (gettext ("Welcome to My PHP Application")); ?> +]]> </programlisting> </example> + </refsect1> + </refentry> + + <refentry id="function.ngettext"> + <refnamediv> + <refname>ngettext</refname> + <refpurpose>gettextã®è¤æ°ç</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ngettext</function></funcdef> + <paramdef>string <parameter>msgid1</parameter></paramdef> + <paramdef>string <parameter>msgid2</parameter></paramdef> + <paramdef>int <parameter>n</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> </refsect1> </refentry> Index: phpdoc/ja/functions/gmp.xml diff -u phpdoc/ja/functions/gmp.xml:1.8 phpdoc/ja/functions/gmp.xml:1.9 --- phpdoc/ja/functions/gmp.xml:1.8 Wed Dec 12 15:52:59 2001 +++ phpdoc/ja/functions/gmp.xml Sun Jan 20 00:07:01 2002 @@ -1,4 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.9 $ --> <reference id="ref.gmp"> <title>GMP 颿°</title> <titleabbrev>GMP</titleabbrev> @@ -39,16 +40,18 @@ <example> <title>GMP ã使ç¨ããéä¹é¢æ°</title> <programlisting role="php"> -<?php -function fact($x) { - if($x <= 1) +<![CDATA[ +<?php +function fact ($x) { + if ($x <= 1) return 1; - else - return gmp_mul($x,fact($x-1)); + else + return gmp_mul ($x, fact ($x-1)); } -print gmp_strval(fact(1000))."\n"; +print gmp_strval (fact (1000)) . "\n"; ?> +]]> </programlisting> </example> ãã®ä¾ã¯ã1000ã®éä¹(é常ã«å¤§ããªæ°ã§ã)ãé常ã«é«éã«è¨ç®ãã¾ãã @@ -77,10 +80,12 @@ <example> <title>GMP æ°ãçæãã</title> <programlisting role="php"> -<?php - $a = gmp_init(123456); - $b = gmp_init("0xFFFFDEBACDFEDF7200"); +<![CDATA[ +<?php + $a = gmp_init (123456); + $b = gmp_init ("0xFFFFDEBACDFEDF7200"); ?> +]]> </programlisting> </example> </para> @@ -149,10 +154,12 @@ <example> <title>GMP æ°ãæååã«å¤æãã</title> <programlisting role="php"> -<?php - $a = gmp_init("0x41682179fbf5"); - printf("Decimal: %s, 36-based: %s", gmp_strval($a), gmp_strval($a,36)); +<![CDATA[ +<?php + $a = gmp_init("0x41682179fbf5"); + printf ("Decimal: %s, 36-based: %s", gmp_strval($a), gmp_strval($a,36)); ?> +]]> </programlisting> </example> </para> @@ -344,11 +351,14 @@ <example> <title>GMP æ°ã®å²ç®</title> <programlisting role="php"> -<?php - $a = gmp_init("0x41682179fbf5"); - $res = gmp_div_qr($a, "0xDEFE75"); - printf("Result is: q - %s, r - %s", gmp_strval($res[0]), gmp_strval($res[1])); +<![CDATA[ +<?php + $a = gmp_init ("0x41682179fbf5"); + $res = gmp_div_qr ($a, "0xDEFE75"); + printf("Result is: q - %s, r - %s", + gmp_strval ($res[0]), gmp_strval ($res[1])); ?> +]]> </programlisting> </example> </para> @@ -461,6 +471,27 @@ </funcsynopsis> <para> -<parameter>a</parameter> ãè¿ãã¾ãã + </para> + </refsect1> + </refentry> + + <refentry id='function.gmp-com'> + <refnamediv> + <refname>gmp_com</refname> + <refpurpose> + aã®è£æ°ãè¨ç®ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>resource <function>gmp_com</function></funcdef> + <paramdef>resource <parameter>a</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; </para> </refsect1> </refentry> Index: phpdoc/ja/functions/http.xml diff -u phpdoc/ja/functions/http.xml:1.17 phpdoc/ja/functions/http.xml:1.18 --- phpdoc/ja/functions/http.xml:1.17 Wed Dec 12 15:53:00 2001 +++ phpdoc/ja/functions/http.xml Sun Jan 20 00:07:01 2002 @@ -1,4 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.18 $ --> <reference id="ref.http"> <title>HTTPé¢é£ã®é¢æ°</title> <titleabbrev>HTTP</titleabbrev> @@ -41,8 +42,10 @@ ãåã®è¤æ°ã®ããããå¼·å¶çã«çæãã¾ããä¾ãã°ã <informalexample> <programlisting role="php"> -header('www-authenticate: Negociate'); -header('www-authenticate: NTLM',false); +<![CDATA[ +header('WWW-Authenticate: Negotiate'); +header('WWW-Authenticate: NTLM',false); +]]> </programlisting> </informalexample> </para> @@ -54,40 +57,97 @@ 人ã«ã¨ã£ã¦ã¯ãçè§£ãã¦ããã¹ãéè¦ãªãã¨ã¨ãªãã¾ãã <informalexample> <programlisting role="php"> +<![CDATA[ header("Location: http://www.php.net/"); /* ãã©ã¦ã¶ãPHP Web ãµã¤ãã« ãªãã¤ã¬ã¯ããã */ exit; /* ãªãã¤ã¬ã¯ããè¡ãéã«ä»¥ä¸ã®ã³ã¼ãã å®è¡ãããªãããã«ãã */ +]]> </programlisting> </informalexample> </para> - <para> - 2çªç®ã®ç¹å¥ãªãããã¯ãæåå"HTTP/"ããå§ã¾ãå ¨ã¦ã®ã - ãã(大æåã»å°æåã¯åºå¥ããã¾ãã)ã§ããä¾ãã°ã - Apacheãã£ã¬ã¯ãã£ãErrorDocument 404ã§ããPHPã¹ã¯ãªãããæå®ã - ã¦ããå ´åããã®PHPã¹ã¯ãªãããã¹ãã¼ã¿ã¹ã³ã¼ã404ãçæãããã - ã«ããã¨è¯ãã§ãããããã®å ´åããã®ã¹ã¯ãªããã®ä¸ã«ä»¥ä¸ã®ããã« - è¨è¿°ãã¾ãã + <note> + <para> + HTTP/1.1ã§ã¯ãã¹ãã¼ã ããã¹ãåã絶対ãã¹ãå«ã絶対 + <acronym>URI</acronym>ã<ulink + url="&spec.http1.1;-sec14.html#sec14.30">Location:</ulink> + ã®å¼æ°ã¨ãã¦å¿ è¦ã§ãããããã¤ãã®ã¯ã©ã¤ã¢ã³ãã§ã¯ç¸å¯¾URIãåã + ã¤ãã¾ããé常ãç¸å¯¾URIãã絶対URIã使ããããã« + $HTTP_SERVER_VARS['HTTP_HOST'],$HTTP_SERVER_VARS['PHP_SELF'], + <function>dirname</function>ã使ç¨ãããã¨ãå¯è½ã§ãã + <informalexample> + <programlisting> +<![CDATA[ +header("Location: http://".$HTTP_SERVER_VARS['HTTP_HOST'] + ."/".dirname($HTTP_SERVER_VARS['PHP_SELF']) + ."/".$relative_url); +]]> + </programlisting> + </informalexample> + </para> + </note> + <para> + 2çªç®ã®ç¹å¥ãªãããã¯ãæåå"<literal>HTTP/</literal>" + ããå§ã¾ãå ¨ã¦ã®ããã(大æåã»å°æåã¯åºå¥ããã¾ãã)ã§ãããã® + ãããã¯ãéä¿¡ããHTTPã¹ãã¼ã¿ã¹ã³ã¼ãã示ãããã«ä½¿ç¨ããã¾ãã + ä¾ãã°ãåå¨ããªããã¡ã¤ã«ã¸ã®ãªã¯ã¨ã¹ããå¦çããããã«ããPHPã¹ã¯ãª + ããã使ç¨ãããã(<literal>ErrorDocument</literal>ãã£ã¬ã¯ãã£ã + ã«ãã)Apacheãè¨å®ããå ´åããã®ã¹ã¯ãªãããæ£ããã¹ãã¼ã¿ã¹ã³ã¼ + ããè¿ãããã«ããå¿ è¦ãããã¾ãã <informalexample> <programlisting role="php"> -header ("HTTP/1.0 404 Not Found"); +<![CDATA[ +header("HTTP/1.0 404 Not Found"); +]]> </programlisting> </informalexample> - </para> - <para> - PHP ã¹ã¯ãªããã¯ãã°ãã°åçã« HTML ãçæãããããã¯ã©ã¤ã¢ã³ããã©ã¦ã¶ã - ãµã¼ãã¼ããã³ã¯ã©ã¤ã¢ã³ããã©ã¦ã¶ã®éã§ãããã·ããã£ãã·ã¥ãè¡ã£ãã - ããã¹ãã§ã¯ããã¾ãããå¤ãã®ãããã·ã¨ã¯ã©ã¤ã¢ã³ãã¯ã以ä¸ã®ã³ã¼ãã«ãã - å¼·å¶çã«ãã£ãã·ã¥ãç¡å¹ã«ã§ãã¾ãã + <note> + <para> + PHP 3ã§ã¯ããã®ã³ã¼ãã¯ãPHPãApacheã¢ã¸ã¥ã¼ã«çã¨ãã¦ã³ã³ã㤠+ ã«ããã¦ããå ´åã«ã®ã¿åä½ãã¾ãã<literal>Status</literal>ãã + ããç¨ãã¦åã广ãå¾ããã¨ãå¯è½ã§ãã + <informalexample> + <programlisting role="php"> +<![CDATA[ +header("Status: 404 Not Found"); +]]> + </programlisting> + </informalexample> + </para> + </note> + </para> + <para> + PHPã¹ã¯ãªããã¯ãã°ãã°åçã« HTML ãçæãããããã¯ã©ã¤ã¢ã³ãã + ã©ã¦ã¶ããµã¼ãã¼ããã³ã¯ã©ã¤ã¢ã³ããã©ã¦ã¶ã®éã§ãããã·ããã£ã + ã·ã¥ãè¡ã£ããããã¹ãã§ã¯ããã¾ãããå¤ãã®ãããã·ã¨ã¯ã©ã¤ã¢ã³ + ãã§ã¯ã以ä¸ã®ã³ã¼ãã«ããå¼·å¶çã«ãã£ãã·ã¥ãç¡å¹ã«ã§ãã¾ãã <informalexample> <programlisting role="php"> -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // éå»ã®æ¥ä» -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); - // 常ã«ä¿®æ£ããã¦ãã -header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 -header("Pragma: no-cache"); // HTTP/1.0 +<![CDATA[ +header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // æ¥ä»ãéå» +header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); + // 常ã«ä¿®æ£ããã¦ãã +header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1 +header("Cache-Control: post-check=0, pre-check=0", false); +header("Pragma: no-cache"); // HTTP/1.0 +]]> </programlisting> </informalexample> + <note> + <para> + ä¸è¨ã®ããããå ¨ã¦åºåããªãã£ãã¨ãã¦ããã¼ã¸ã®ãã£ãã·ã¥ãè¡ + ãããªãå ´åããããã¨ã«æ°ä»ãããããã¾ãããããã©ã«ãã®ãã© + ã¦ã¶ã®ãã£ãã·ã¥ã®åä½ãã¦ã¼ã¶ã夿´ã§ããææ®µã¯ããã¤ãããã¾ + ããä¸è¨ã®ããããéä¿¡ãããã¨ã«ãããã¹ã¯ãªããã®åºåããã£ã + ã·ã¥ãããå¯è½æ§ãããè¨å®ã䏿¸ãããã¹ãã§ãã + </para> + <para> + å ãã¦ã<function>session_cache_limiter</function>ããã³ + è¨å®<literal>session.cache_limiter</literal>ãã»ãã·ã§ã³ãä½¿ç¨ + ãããéã«ãã£ãã·ã¥é¢ä¿ã®ããããæ£ããèªåçã«çæããããã« + 使ç¨ã§ãã¾ãã + </para> + </note> </para> <para> è¦ãã¦ããã¦é ãããã®ã¯ã<function>header</function> 颿°ã¯ãé @@ -102,16 +162,59 @@ <para> <informalexample> <programlisting role="php"> -<?php require("user_logging.inc") ?> +<![CDATA[ +<?php require("user_logging.inc") ?> -<?php header ("Content-Type: audio/x-pn-realaudio"); ?> +<?php header ("Content-type: audio/x-pn-realaudio"); ?> // åä½ãã¾ãããä¸ã®ç©ºè¡ã«æ³¨æãã¦ä¸ããã +]]> </programlisting> </informalexample> + <note> + <para> + PHP 4ã§ã¯ããã®åé¡ã«å¯¾å¦ããããã«åºåã®ãããã¡ãªã³ã°ã使ç¨ã + ããã¨ãå¯è½ã§ãããã®å ´åããã©ã¦ã¶ã¸ã®åºåãéä¿¡ããã¾ã§ãµã¼ + ãã«å ¨ã¦ãããã¡ãªã³ã°ããããªã¼ãã¼ããããããã¾ããåºåãã + ãã¡ãªã³ã°ã¯ã<function>ob_start</function>㨠+ <function>ob_end_flush</function>ãã¹ã¯ãªããã§ã³ã¼ã«ããã + <filename>php.ini</filename>ã¾ãã¯ãµã¼ãè¨å®ãã¡ã¤ã«ã®è¨å®ã㣠+ ã¬ã¯ãã£ã<literal>output_buffering</literal>ãè¨å®ãããã¨ã«ã + ãè¡ããã¨ãå¯è½ã§ãã + </para> + </note> </para> <para> - <function>headers_sent</function>ãåç §ä¸ããã + PDFãã¡ã¤ã«ãçæããã¨ãã£ãããã«éä¿¡ãããã¼ã¿ãä¿åãããã©ã + ãã¦ã¼ã¶ã«ããã³ããã表示ãããå ´åãæ¨å¥¨ããããã¡ã¤ã«åãæå® + ãã¦ãã©ã¦ã¶ã«ä¿åãã¤ã¢ãã°ã表示ããã<ulink + url="&url.rfc2183;">Content-Disposition</ulink>ãããã使ç¨å¯è½ã§ + ãã + <informalexample> + <programlisting role="php"> +<![CDATA[ +<?php +header("Content-type: application/pdf"); +header("Content-Disposition: attachment; filename=downloaded.pdf"); + +/* ... PDFãã¡ã¤ã«ãåºå ... */ +]]> + </programlisting> + </informalexample> + <note> + <para> + Microsoft Internet Explorer 4.01ã«ã¯ãããåä½ããªãã¨ãããã° + ãããã¾ãããã®è§£æ±ºçã¯ããã¾ãããMicrosoft Internet Explorer + 5.5ã«ãããã妨ãããã°ãããã¾ããããã¯ããµã¼ãã¹ããã¯2以é + ã¨ãããã¨ã§ä¿®æ´å¯è½ã§ãã + </para> + </note> + </para> + <para> + <function>headers_sent</function>, + <function>setcookie</function>åã³ + <link linkend="features.http-auth">HTTPèªè¨¼</link>ã®ç¯ãåç §ä¸ã + ãã </para> </refsect1> </refentry> @@ -126,7 +229,7 @@ <funcsynopsis> <funcprototype> <funcdef>boolean <function>headers_sent</function></funcdef> - <paramdef><parameter>void</parameter></paramdef> + <void/> </funcprototype> </funcsynopsis> <para> @@ -231,9 +334,11 @@ <example> <title><function>setcookie</function>ã«ããéä¿¡ã®ä¾</title> <programlisting role="php"> +<![CDATA[ setcookie ("TestCookie", "Test Value"); setcookie ("TestCookie", $value,time()+3600); /* 1æéã§æéåã */ setcookie ("TestCookie", $value,time()+3600, "/~rasmus/", ".utoronto.ca", 1); +]]> </programlisting> </example> </para> @@ -242,10 +347,12 @@ <example> <title><function>setcookie</function>ã«ããåé¤ã®ä¾</title> <programlisting role="php"> +<![CDATA[ setcookie ("TestCookie"); // æå¹æéã1æéåã«è¨å®ãã setcookie ("TestCookie", "", time() - 3600); setcookie ("TestCookie", "", time() - 3600, "/~rasmus/", ".utoronto.ca", 1); +]]> </programlisting> </example> ã¯ããã¼ãåé¤ããå ´åã«ã¯ããã©ã¦ã¶ã®å餿©æ§ãèµ·åããããã«å¿ @@ -259,8 +366,10 @@ ã®ä¾ã®ãã¡ã®ä¸ã¤ã使ç¨ãã¦ä¸ããã <informalexample> <programlisting role="php"> +<![CDATA[ echo $TestCookie; echo $HTTP_COOKIE_VARS["TestCookie"]; +]]> </programlisting> </informalexample> </para> @@ -271,14 +380,16 @@ ã«ç½®ãããããã¾ãã <informalexample> <programlisting role="php"> +<![CDATA[ setcookie ("cookie[three]", "cookiethree"); setcookie ("cookie[two]", "cookietwo"); setcookie ("cookie[one]", "cookieone"); if (isset ($cookie)) { while (list ($name, $value) = each ($cookie)) { - echo "$name == $value<br>\n"; + echo "$name == $value<br>\n"; } } +]]> </programlisting> </informalexample> </para> Index: phpdoc/ja/functions/hw.xml diff -u phpdoc/ja/functions/hw.xml:1.12 phpdoc/ja/functions/hw.xml:1.13 --- phpdoc/ja/functions/hw.xml:1.12 Wed Dec 12 15:53:00 2001 +++ phpdoc/ja/functions/hw.xml Sun Jan 20 00:07:01 2002 @@ -1,4 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.13 $ --> <reference id="ref.hyperwave"> <title>Hyperwave 颿°</title> <titleabbrev>Hyperwave</titleabbrev> @@ -307,7 +308,9 @@ ã«ç°¡åã§ãã <informalexample> <programlisting role="apache-conf"> +<![CDATA[ RewriteRule ^/(.*) /usr/local/apache/htdocs/HyperWave/$1 [L] +]]> </programlisting> </informalexample> ãã®ç¶æ ã§ãå ¨ã¦ã® URL 㯠Hyperwave ãµã¼ãã¼ã®ãªãã¸ã§ã¯ãã« @@ -318,7 +321,9 @@ <informalexample> <programlisting role="apache-conf"> +<![CDATA[ RewriteRule ^/hw/(.*) /usr/local/apache/htdocs/hw/$1 [L] +]]> </programlisting> </informalexample> @@ -336,7 +341,9 @@ <informalexample> <programlisting role="apache-conf"> +<![CDATA[ RewriteEngine on +]]> </programlisting> </informalexample> @@ -473,10 +480,11 @@ </funcprototype> </funcsynopsis> <para> - ãªãã¸ã§ã¯ãã¬ã³ã¼ãã®é åãè¿ãã¾ãã - åãªãã¸ã§ã¯ãã¬ã³ã¼ãã¯ãID <parameter>objectID</parameter> - ãæããã³ã¬ã¯ã·ã§ã³ã®åã«å±ãã¦ãã¾ãã - é åã¯ãããã¥ã¡ã³ãããã³ã³ã¬ã¯ã·ã§ã³ã®å ¨ã¦ã®åãæãã¦ãã¾ãã</para> + ãªãã¸ã§ã¯ãã¬ã³ã¼ãã®é åãè¿ãã¾ããåãªãã¸ã§ã¯ãã¬ã³ã¼ãã¯ãID + <parameter>objectID</parameter>ãæããã³ã¬ã¯ã·ã§ã³ã®åã«å±ãã¦ã + ã¾ããé åã¯ãããã¥ã¡ã³ãããã³ã³ã¬ã¯ã·ã§ã³ã®å ¨ã¦ã®åãæãã¦ãã¾ + ãã + </para> </refsect1> </refentry> @@ -494,9 +502,10 @@ </funcprototype> </funcsynopsis> <para> - connection ãæå¹ãªæ¥ç¶ã¤ã³ããã¯ã¹ã§ãªãå ´åã« &false;ããã以å¤ã®å ´åã« - &true; ãè¿ãã¾ãã - æå®ããæ¥ç¶ã¤ã³ããã¯ã¹ã«é¢ã㦠Hyperwave ãµã¼ãã¼ã¨ã®æ¥ç¶ãéãã¾ãã</para> + connectionãæå¹ãªæ¥ç¶ã¤ã³ããã¯ã¹ã§ãªãå ´åã«&false;ããã以å¤ã® + å ´åã«&true;ãè¿ãã¾ããæå®ããæ¥ç¶ã¤ã³ããã¯ã¹ã«é¢ãã¦Hyperwave + ãµã¼ãã¼ã¨ã®æ¥ç¶ãéãã¾ãã + </para> </refsect1> </refentry> @@ -517,18 +526,20 @@ </funcprototype> </funcsynopsis> <para> - Hyperwave ãµã¼ãã¼ã¸ã®æ¥ç¶ããªã¼ãã³ããæåããå ´åã«æ¥ç¶ã¤ã³ããã¯ã¹ã - æ¥ç¶ã§ããªãã£ãå ´åã« &false; ãè¿ãã¾ãã - å弿°ã¯ããã¼ãçªå·ãé¤ãå¼ç¨ç¬¦ä»ã®æååã§ããå¿ è¦ãããã¾ãã - <parameter>username</parameter> ããã³ <parameter>password</parameter> - 弿°ã¯ãªãã·ã§ã³ã§ãããçç¥ãããã¨ãã§ãã¾ãã - ãã®å ´åããµã¼ãã¼ã«ããã¦ã¼ã¶ã¼èå¥ã¯è¡ããã¾ããã - ããã¯ãå¿åã¦ã¼ã¶ã¼ã¨ãã¦èå¥ããããã¨ã«ä¼¼ã¦ãã¾ãã - ãã®é¢æ°ã¯ãä»ã® Hyperwave 颿°ã§å¿ è¦ãªæ¥ç¶ã¤ã³ããã¯ã¹ãè¿ãã¾ãã - è¤æ°ã®æ¥ç¶ãåæã«ãªã¼ãã³ãããã¨ãå¯è½ã§ãããã¹ã¯ã¼ãã¯æå·åãããªãã㨠- ãè¦ãã¦ããã¦ä¸ããã</para> + Hyperwave ãµã¼ãã¼ã¸ã®æ¥ç¶ããªã¼ãã³ããæåããå ´åã«æ¥ç¶ã¤ã³ãã + ã¯ã¹ãæ¥ç¶ã§ããªãã£ãå ´åã«&false;ãè¿ãã¾ããå弿°ã¯ããã¼ãçª + å·ãé¤ãå¼ç¨ç¬¦ä»ã®æååã§ããå¿ è¦ãããã¾ãã + <parameter>username</parameter>ããã³ + <parameter>password</parameter>弿°ã¯ãªãã·ã§ã³ã§ãããçç¥ããã + ã¨ãã§ãã¾ãããã®å ´åããµã¼ãã¼ã«ããã¦ã¼ã¶ã¼èå¥ã¯è¡ããã¾ããã + ããã¯ãå¿åã¦ã¼ã¶ã¼ã¨ãã¦èå¥ããããã¨ã«ä¼¼ã¦ãã¾ãããã®é¢æ°ã¯ã + ä»ã® Hyperwave 颿°ã§å¿ è¦ãªæ¥ç¶ã¤ã³ããã¯ã¹ãè¿ãã¾ããè¤æ°ã®æ¥ç¶ + ãåæã«ãªã¼ãã³ãããã¨ãå¯è½ã§ãããã¹ã¯ã¼ãã¯æå·åãããªãã㨠+ ãè¦ãã¦ããã¦ä¸ããã + </para> <para> - <function>hw_pConnect</function> ãåç §ä¸ããã</para> + <function>hw_pConnect</function> ãåç §ä¸ããã + </para> </refsect1> </refentry> @@ -972,20 +983,18 @@ </funcprototype> </funcsynopsis> <para> - ãªã¢ã¼ãããã¥ã¡ã³ããè¿ãã¾ããHyperwave 表è¨ã®ãªã¢ã¼ãããã¥ã¡ã³ãã¯ã - å¤é¨ã½ã¼ã¹ããåå¾ãããããã¥ã¡ã³ãã§ãã - ä¸è¬çãªãªã¢ã¼ãããã¥ã¡ã³ãã¯ãä¾ãã°å¤é¨Webãã¼ã¸ã¾ãã¯ãã¼ã¿ãã¼ã¹ - ã®ã¯ã¨ãªã¼ã§ãã - å¤é¨ã½ã¼ã¹ãã¢ã¯ã»ã¹å¯è½ã¨ããããã«ãHyperwave ã§ã¯ CGI ã«ä¼¼ã HGI - (Hyperwave Gateway Interface)ãå°å ¥ãã¦ãã¾ãã - ç¾å¨ã ftp, http ãµã¼ãã¼ã¨ããã¤ãã®ãã¼ã¿ãã¼ã¹ã®ã¿ã HGI ã«ãã - ã¢ã¯ã»ã¹å¯è½ã§ãã - <function>hw_GetRemote</function> ãã³ã¼ã«ãããã¨ã«ããå¤é¨ã½ã¼ã¹ããã® - ããã¥ã¡ã³ããè¿ããã¾ãã - ãã®é¢æ°ã使ç¨ãããå ´åãHGI ãçç¥ãã¦ããå¿ è¦ãããã¾ãã - å¤é¨ã½ã¼ã¹ãã¢ã¯ã»ã¹ããããã« Hyperwave ã®ãããã« PHP ã使ç¨ãããã¨ã - èæ ®ããå¿ è¦ãããã¾ããHyperwave ã²ã¼ãã¦ã¨ã¤ã«ãã¼ã¿ãã¼ã¹ã®ãµãã¼ãã - ä»å ããã®ã¯ãPHPã«ããã¦åããã¨ãè¡ããããããå°é£ã§ãã + ãªã¢ã¼ãããã¥ã¡ã³ããè¿ãã¾ããHyperwave 表è¨ã®ãªã¢ã¼ãããã¥ã¡ + ã³ãã¯ãå¤é¨ã½ã¼ã¹ããåå¾ãããããã¥ã¡ã³ãã§ããä¸è¬çãªãªã¢ã¼ + ãããã¥ã¡ã³ãã¯ãä¾ãã°å¤é¨Webãã¼ã¸ã¾ãã¯ãã¼ã¿ãã¼ã¹ã®ã¯ã¨ãªã¼ + ã§ããå¤é¨ã½ã¼ã¹ãã¢ã¯ã»ã¹å¯è½ã¨ããããã«ãHyperwaveã§ã¯CGIã«ä¼¼ + ãHGI(Hyperwave Gateway Interface)ãå°å ¥ãã¦ãã¾ããç¾å¨ã + ftp,httpãµã¼ãã¼ã¨ããã¤ãã®ãã¼ã¿ãã¼ã¹ã®ã¿ãHGIã«ããã¢ã¯ã»ã¹å¯ + è½ã§ãã<function>hw_GetRemote</function>ãã³ã¼ã«ãããã¨ã«ããå¤ + é¨ã½ã¼ã¹ããã®ããã¥ã¡ã³ããè¿ããã¾ãããã®é¢æ°ã使ç¨ãããå ´åã + HGIãçç¥ãã¦ããå¿ è¦ãããã¾ããå¤é¨ã½ã¼ã¹ãã¢ã¯ã»ã¹ããããã« + Hyperwaveã®ãããã«PHPã使ç¨ãããã¨ãèæ ®ããå¿ è¦ãããã¾ãã + Hyperwaveã²ã¼ãã¦ã¨ã¤ã«ãã¼ã¿ãã¼ã¹ã®ãµãã¼ããä»å ããã®ã¯ãPHP + ã«ããã¦åããã¨ãè¡ããããããå°é£ã§ãã </para> <para> <function>hw_GetRemoteChildren</function> ãåç §ä¸ããã @@ -1781,11 +1790,13 @@ <example> <title>屿§ãä¿®æ£ãã</title> <programlisting role="php"> +<![CDATA[ // $connect ã¯ãHyperwave ãµã¼ãã¼ã¸ã®æ¢åã®æ¥ç¶ã§ãã // $objid ã¯ãä¿®æ£ãããªãã¸ã§ã¯ãã®IDã§ãã $remarr = array("Name" => "books"); $addarr = array("Name" => "articles"); $hw_modifyobject($connect, $objid, $remarr, $addarr); +]]> </programlisting> </example> åå=å¤ã®çµãåé¤/追å ããããã«ã¯ããªãã¸ã§ã¯ãã¬ã³ã¼ããremove/add @@ -1795,11 +1806,13 @@ <example> <title>å®å ¨ã«æ°è¦ã®å±æ§ã追å ãã</title> <programlisting role="php"> +<![CDATA[ // $connect ã¯ãHyperwave ãµã¼ãã¼ã¸ã®æ¢åã®æ¥ç¶ã§ãã // $objid ã¯ãä¿®æ£ãããªãã¸ã§ã¯ãã®IDã§ãã $remarr = array("Name" => 0); $addarr = array("Name" => "articles"); $hw_modifyobject($connect, $objid, $remarr, $addarr); +]]> </programlisting> </example> </para> @@ -1816,18 +1829,22 @@ <example> <title>Title 屿§ãä¿®æ£ãã</title> <programlisting role="php"> +<![CDATA[ $remarr = array("Title" => "en:Books"); $addarr = array("Title" => "en:Articles"); $hw_modifyobject($connect, $objid, $remarr, $addarr); +]]> </programlisting> </example> ã¾ã㯠<example> <title>Title 屿§ãä¿®æ£ãã</title> <programlisting role="php"> +<![CDATA[ $remarr = array("Title" => array("en" => "Books")); $addarr = array("Title" => array("en" => "Articles", "ge"=>"Artikel")); $hw_modifyobject($connect, $objid, $remarr, $addarr); +]]> </programlisting> </example> ãã®ä¾ã§ã¯ãè±èªã®ã¿ã¤ãã« 'Books' ãåé¤ãã @@ -1836,9 +1853,11 @@ <example> <title>屿§ãåé¤ãã</title> <programlisting role="php"> +<![CDATA[ $remarr = array("Title" => ""); $addarr = array("Title" => "en:Articles"); $hw_modifyobject($connect, $objid, $remarr, $addarr); +]]> </programlisting> </example> <note> @@ -2132,6 +2151,165 @@ </funcsynopsis> <para> æ¥ç¶ãè¡ã£ã¦ããã¦ã¼ã¶ã¼åãè¿ãã¾ãã + </para> + </refsect1> + </refentry> + + <refentry id='function.hw-stat'> + <refnamediv> + <refname>hw_stat</refname> + <refpurpose> + ã¹ãã¼ã¿ã¹æååãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>hw_stat</function></funcdef> + <paramdef>int <parameter>link</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.hw-setlinkroot'> + <refnamediv> + <refname>hw_setlinkroot</refname> + <refpurpose> + è¨ç®ããããªã³ã¯ã®IDãè¨å®ãã + Set the id to which links are calculated + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>hw_setlinkroot</function></funcdef> + <paramdef>int <parameter>link</parameter></paramdef> + <paramdef>int <parameter>rootid</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.hw-connection-info'> + <refnamediv> + <refname>hw_connection_info</refname> + <refpurpose> + Hyperwaveãµã¼ãã¸ã®æ¥ç¶ã«é¢ããæ å ±ãåºåãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>hw_connection_info</function></funcdef> + <paramdef>int <parameter>link</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.hw-dummy'> + <refnamediv> + <refname>hw_dummy</refname> + <refpurpose> + Hyperwaveããã¼é¢æ° + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>hw_dummy</function></funcdef> + <paramdef>int <parameter>link</parameter></paramdef> + <paramdef>int <parameter>id</parameter></paramdef> + <paramdef>int <parameter>msgid</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.hw-insertanchors'> + <refnamediv> + <refname>hw_insertanchors</refname> + <refpurpose> + textã«ã¢ã³ã«ã¼ã®ã¿ãæ¿å ¥ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>hw_insertanchors</function></funcdef> + <paramdef>int <parameter>hwdoc</parameter></paramdef> + <paramdef>array <parameter>anchorecs</parameter></paramdef> + <paramdef>array <parameter>dest</parameter></paramdef> + <paramdef>array <parameter><optional>urlprefixes</optional></parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.hw-getrellink'> + <refnamediv> + <refname>hw_getrellink</refname> + <refpurpose> + rootidã«ç¸å¯¾çãªsourceããdestã¸ã®ãªã³ã¯ãå¾ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>hw_getrellink</function></funcdef> + <paramdef>int <parameter>link</parameter></paramdef> + <paramdef>int <parameter>rootid</parameter></paramdef> + <paramdef>int <parameter>sourceid</parameter></paramdef> + <paramdef>int <parameter>destid</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.hw-changeobject'> + <refnamediv> + <refname>hw_changeobject</refname> + <refpurpose> + ãªãã¸ã§ã¯ãã®å±æ§ã夿´ãã(å¤ã颿°) + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>hw_changeobject</function></funcdef> + <paramdef>int <parameter>link</parameter></paramdef> + <paramdef>int <parameter>objid</parameter></paramdef> + <paramdef>array <parameter>attributes</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; </para> </refsect1> </refentry> Index: phpdoc/ja/functions/ibase.xml diff -u phpdoc/ja/functions/ibase.xml:1.16 phpdoc/ja/functions/ibase.xml:1.17 --- phpdoc/ja/functions/ibase.xml:1.16 Wed Dec 12 15:53:02 2001 +++ phpdoc/ja/functions/ibase.xml Sun Jan 20 00:07:01 2002 @@ -1,4 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.17 $ --> <reference id="ref.ibase"> <title>InterBase颿°</title> <titleabbrev>InterBase</titleabbrev> @@ -14,6 +15,18 @@ <para> InterBase 6ã®å®å ¨ãªãµãã¼ããPHP 4.0ã§è¿½å ããã¾ããã </para> + <para> + ãã®ãã¼ã¿ãã¼ã¹ã¯ãã·ã³ã°ã«ã¯ãªã¼ã(')æåãã¨ã¹ã±ã¼ãã«ä½¿ç¨ãã¾ + ãããã®åä½ã¯Sybaseãã¼ã¿ãã¼ã¹ã«ä¼¼ã¦ããã以ä¸ã®ãã£ã¬ã¯ãã£ã + ã<filename>php.ini</filename>ã«è¿½å ãã¦ä¸ããã + <informalexample> + <programlisting> +<![CDATA[ +magic_quotes_sybase = On +]]> + </programlisting> + </informalexample> + </para> </note> </partintro> @@ -63,23 +76,22 @@ </funcprototype> </funcsynopsis> <para> - InterBaseãµã¼ãã¼ã¸ã®æ¥ç¶ã確ç«ãã¾ãã - 弿°<parameter>database</parameter>ã¯æ¥ç¶ãããµã¼ãã¼ä¸ã® - ãã¼ã¿ãã¼ã¹ãã¡ã¤ã«ã¸ã®æ£ãããã¹ã§ããå¿ è¦ãããã¾ãã - ãã¼ã«ã«ãªãµã¼ãã¼ã¸ã®æ¥ç¶ã§ãªãå ´åã使ç¨ããæ¥ç¶ãããã³ã«ã«å¿ã㦠- ãã®å¼æ°ã®åã« - 'hostname:' (TCP/IP)ã'//hostname/' (NetBEUI)ã'hostname@' (IPX/SPX) - ã®ã©ãããã¤ããå¿ è¦ãããã¾ãã - <parameter>username</parameter>ããã³<parameter>password</parameter> - ã¯PHPè¨å®ãã£ã¬ã¯ãã£ãibase.default_user - ããã³ibase.default_passwordã§æå®ãããã¨ãå¯è½ã§ãã - <parameter>charset</parameter>ã¯ãã¼ã¿ãã¼ã¹ã«é¢ããããã©ã«ãã® - æåã»ããã§ãã <parameter>buffers</parameter>㯠- ãµã¼ãã¼å´ã®ãã£ãã·ã¥ã«ç¢ºä¿ããããã¼ã¿ãã¼ã¹ãããã¡ã®æ°ã§ãã - 0ã¾ãã¯çç¥ãããå ´åããµã¼ãã¼ã¯ããã©ã«ãå¤ãç¨ãã¾ãã - <parameter>dialect</parameter>ã¯ãæ¥ç¶æã«å®è¡ãããå ¨ã¦ã®å½ä»¤ã«é¢ãã - SQLæ¹è¨ã®ããã©ã«ãå¤ã鏿ããããã©ã«ãã§ã¯ã¯ã©ã¤ã¢ã³ãã©ã¤ãã©ãªã§ãµãã¼ã - ãããæ¹è¨ã®ãã¡ãæé«ä½ã®ãã®ã«ãªãã¾ãã + InterBaseãµã¼ãã¼ã¸ã®æ¥ç¶ã確ç«ãã¾ãã弿° + <parameter>database</parameter>ã¯æ¥ç¶ãããµã¼ãã¼ä¸ã®ãã¼ã¿ãã¼ã¹ + ãã¡ã¤ã«ã¸ã®æ£ãããã¹ã§ããå¿ è¦ãããã¾ãããã¼ã«ã«ãªãµã¼ãã¼ã¸ + ã®æ¥ç¶ã§ãªãå ´åã使ç¨ããæ¥ç¶ãããã³ã«ã«å¿ãã¦ãã®å¼æ°ã®åã«' + hostname:' (TCP/IP)ã'//hostname/' (NetBEUI)ã'hostname@' + (IPX/SPX)ã®ã©ãããã¤ããå¿ è¦ãããã¾ãã + <parameter>username</parameter>ããã³ + <parameter>password</parameter>ã¯PHPè¨å®ãã£ã¬ã¯ãã£ã + ibase.default_userããã³ibase.default_passwordã§æå®ãããã¨ãå¯ + è½ã§ãã<parameter>charset</parameter>ã¯ãã¼ã¿ãã¼ã¹ã«é¢ããããã© + ã«ãã®æåã»ããã§ãã <parameter>buffers</parameter>ã¯ãµã¼ãã¼å´ + ã®ãã£ãã·ã¥ã«ç¢ºä¿ããããã¼ã¿ãã¼ã¹ãããã¡ã®æ°ã§ãã0ã¾ãã¯çç¥ + ãããå ´åããµã¼ãã¼ã¯ããã©ã«ãå¤ãç¨ãã¾ãã + <parameter>dialect</parameter>ã¯ãæ¥ç¶æã«å®è¡ãããå ¨ã¦ã®å½ä»¤ã« + é¢ããSQLæ¹è¨ã®ããã©ã«ãå¤ã鏿ããããã©ã«ãã§ã¯ã¯ã©ã¤ã¢ã³ãã© + ã¤ãã©ãªã§ãµãã¼ããããæ¹è¨ã®ãã¡ãæé«ä½ã®ãã®ã«ãªãã¾ãã </para> <para> åã弿°ã§<function>ibase_connect</function>ãå度ã³ã¼ã«ãããå ´åã @@ -90,32 +102,35 @@ <example> <title><function>ibase_connect</function>ã®ä¾</title> <programlisting role="php"> -<?php - $dbh = ibase_connect ($host, $username, $password); - $stmt = 'SELECT * FROM tblname'; - $sth = ibase_query ($dbh, $stmt); - while ($row = ibase_fetch_object ($sth)) { - print $row->email . "\n"; - } - ibase_close ($dbh); +<![CDATA[ +<?php + $dbh = ibase_connect($host, $username, $password); + $stmt = 'SELECT * FROM tblname'; + $sth = ibase_query($dbh, $stmt); + while ($row = ibase_fetch_object($sth)) { + echo $row->email, "\n"; + } + ibase_free_result($sth); + ibase_close($dbh); ?> +]]> </programlisting> </example> </para> <note> <para> - <parameter>buffers</parameter>ã¯PHP 4-RC2ã§è¿½å ããã¾ããã + <parameter>buffers</parameter>ã¯ãPHP 4.0RC2ã§è¿½å ããã¾ããã </para> </note> <note> <para> - <parameter>dialect</parameter>ã¯PHP 4-RC2ã§è¿½å ããã¾ããã + <parameter>dialect</parameter>ã¯PHP 4.0RC2ã§è¿½å ããã¾ããã ãã®ãªãã·ã§ã³ã¯ãInterBase 6以éã§ã®ã¿ä½¿ç¨å¯è½ã§ãã </para> </note> <note> <para> - <parameter>role</parameter>ã¯PHP 4-RC2ã§è¿½å ããã¾ããã + <parameter>role</parameter>ã¯PHP 4.0RC2ã§è¿½å ããã¾ããã ãã®æ©è½ã¯ãInterBase 5以éã§ã®ã¿ä½¿ç¨å¯è½ã§ãã </para> </note> @@ -263,20 +278,38 @@ </funcprototype> </funcsynopsis> <simpara> - InterBaseãã¼ã¿ãã¼ã¹ä¸ã§ã¯ã¨ãªã¼ãå®è¡ããçµæIDãè¿ãã¾ãã - ãã®IDã¯ã<function>ibase_fetch_row</function>, + InterBaseãã¼ã¿ãã¼ã¹ä¸ã§ã¯ã¨ãªã¼ãå®è¡ãã¾ããã¯ã¨ãªãæåããªã + å ´åã&false;ãè¿ãã¾ããæåããå ´åã(SELECTã¯ã¨ãªã®ãããª)çµæ + ã®è¡ãããå ´åãçµæIDãè¿ãã¾ããã¯ã¨ãªãæåããçµæããªãå ´åã + &true;ãè¿ãã¾ããã¯ã¨ãªã失æããå ´åã &false;ãè¿ããã¾ãã + </simpara> + <para> + <function>ibase_errmsg</function>, + <function>ibase_fetch_row</function>, <function>ibase_fetch_object</function>, - <function>ibase_free_result</function>, - <function>ibase_free_query</function>ã§ä½¿ç¨ããã¾ãã + <function>ibase_free_result</function>ãåç §ä¸ããã + </para> + </refsect1> + </refentry> + + <refentry id="function.ibase-errmsg"> + <refnamediv> + <refname>ibase_errmsg</refname> + <refpurpose> + ã¨ã©ã¼ã¡ãã»ã¼ã¸ãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ibase_errmsg</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <simpara> + ã¨ã©ã¼ã¡ãã»ã¼ã¸ãæããæååãè¿ãã¾ãã </simpara> - <note> - <para> - ãã®é¢æ°ã¯ããã©ã¡ã¼ã¿ã¸ã®å¤æ°ã®ãã¤ã³ãããµãã¼ããã¦ãã¾ããã - ãã®æ©è½ã使ç¨ããæå³ã¯ãã¾ãããã¾ããã - å®ç¨ä¾ã«ã¤ãã¦ã¯ã<function>ibase_prepare</function>ããã³ - <function>ibase_execute</function>ãåç §ä¸ããã - </para> - </note> </refsect1> </refentry> @@ -323,7 +356,8 @@ æ¬ä¼¼ãªãã¸ã§ã¯ãã¨ãã¦1è¡åã®çµæãåå¾ãã¾ãã <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<php $dbh = ibase_connect ($host, $username, $password); $stmt = 'SELECT * FROM tblname'; $sth = ibase_query ($dbh, $stmt); @@ -332,6 +366,7 @@ } ibase_close ($dbh); ?> +]]> </programlisting> </informalexample> </para> @@ -363,11 +398,10 @@ ã¾ãã¾ãã <informalexample> <programlisting role="php"> -// helio@helio.com.br 08-Dec-2000 02:53 - -$rs=ibase_query("Select * from something"); -$coln = ibase_num_fields($rs); -for ($i=0 ; $i < $coln ; $i++) { +<![CDATA[ +$rs=ibase_query("SELECT * FROM tablename"); +$coln = ibase_num_fields($rs); +for ($i=0; $i < $coln; $i++) { $col_info = ibase_field_info($rs, $i); echo "name: ".$col_info['name']."\n"; echo "alias: ".$col_info['alias']."\n"; @@ -375,12 +409,36 @@ echo "length: ".$col_info['length']."\n"; echo "type: ".$col_info['type']."\n"; } +]]> </programlisting> </informalexample> </para> </refsect1> </refentry> + <refentry id="function.ibase-free-query"> + <refnamediv> + <refname>ibase_free_query</refname> + <refpurpose> + æºåãããã¯ã¨ãªã«ãã確ä¿ãããã¡ã¢ãªãè§£æ¾ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ibase_free_query</function></funcdef> + <paramdef>int + <parameter>query</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + <function>ibase_prepare</function>ã«ããæºåãããã¯ã¨ãªãè§£æ¾ãã¾ãã + </simpara> + </refsect1> + </refentry> + <refentry id="function.ibase-free-result"> <refnamediv> <refname>ibase_free_result</refname> @@ -424,8 +482,8 @@ </funcprototype> </funcsynopsis> <simpara> - 対å¿ãããã©ã¡ã¼ã¿ã®ãã¤ã³ãã - (<function>ibase_execute</function>ã«ãã)å®è¡ãããããã®ã¯ã¨ãªãæºåãã¾ãã + 対å¿ãããã©ã¡ã¼ã¿ã®ãã¤ã³ãã(<function>ibase_execute</function> + ã«ãã)å®è¡ãããããã®ã¯ã¨ãªãæºåãã¾ãã </simpara> </refsect1> </refentry> @@ -457,7 +515,8 @@ <function>ibase_query</function>ã使ç¨ããããããã£ã¨å¹ççã§ãã <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php $updates = array( 1 => 'Eric', 5 => 'Filip', @@ -470,6 +529,7 @@ ibase_execute($query, $bar, $baz); } ?> +]]> </programlisting> </informalexample> </para> @@ -556,29 +616,6 @@ </refsect1> </refentry> - <refentry id="function.ibase-free-query"> - <refnamediv> - <refname>ibase_free_query</refname> - <refpurpose> - æºåãããã¯ã¨ãªã«ãã確ä¿ãããã¡ã¢ãªãè§£æ¾ãã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>ibase_free_query</function></funcdef> - <paramdef>int - <parameter>query</parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <simpara> - <function>ibase_prepare</function>ã«ããæºåãããã¯ã¨ãªãè§£æ¾ãã¾ãã - </simpara> - </refsect1> - </refentry> - <refentry id="function.ibase-timefmt"> <refnamediv> <refname>ibase_timefmt</refname> @@ -602,25 +639,29 @@ </funcprototype> </funcsynopsis> <para> - ã¯ã¨ãªã¼ããè¿ãããtimestampãdata,timeåã«ã©ã ã®ãã©ã¼ããããè¨å®ãã¾ãã - å é¨çã«ãããã®ã«ã©ã ã¯Cè¨èªã®é¢æ°strftime()ã«ãããã©ã¼ãããããã¾ãããã®ããã - æååã®ãã©ã¼ãããã«ã¤ãã¦ã¯ãã®Cè¨èªã®é¢æ°ããã¥ã¡ã³ããåç §ä¸ããã - <parameter>columntype</parameter>ã«ã¯å®æ°IBASE_TIMESTAMPãIBASE_DATEãIBASE_TIME - ã®ã©ãããæå®ãã¾ããçç¥ããå ´åã«ã¯ãä¸ä½äºææ§ãä¿ã¤ãã - IBASE_TIMESTAMPãããã©ã«ãå¤ã¨ãªãã¾ãã + ã¯ã¨ãªã¼ããè¿ãããtimestampãdata,timeåã«ã©ã ã®ãã©ã¼ãããã + è¨å®ãã¾ããå é¨çã«ãããã®ã«ã©ã ã¯Cè¨èªã®é¢æ°strftime()ã«ãã + ãã©ã¼ãããããã¾ãããã®ãããæååã®ãã©ã¼ãããã«ã¤ãã¦ã¯ã + ã®Cè¨èªã®é¢æ°ããã¥ã¡ã³ããåç §ä¸ããã + <parameter>columntype</parameter>ã«ã¯å®æ°IBASE_TIMESTAMPã + IBASE_DATEãIBASE_TIMEã®ã©ãããæå®ãã¾ããçç¥ããå ´åã«ã¯ãä¸ + ä½äºææ§ãä¿ã¤ããIBASE_TIMESTAMPãããã©ã«ãå¤ã¨ãªãã¾ãã <informalexample> <programlisting role="php"> -<?php - // InterBase 6 TIMEåã«ã©ã ã - // '05 hours 37 minutes'ã®å½¢å¼ã§è¿ããã¾ã - ibase_timefmt("%H hours %M minutes", IBASE_TIME); +<![CDATA[ +<?php +// InterBase 6 TIMEåã«ã©ã ã +// '05 hours 37 minutes'ã®å½¢å¼ã§è¿ããã¾ã +ibase_timefmt("%H hours %M minutes", IBASE_TIME); ?> +]]> </programlisting> </informalexample> </para> <para> - PHPè¨å®ãã£ã¬ã¯ãã£ãibase.timestampformatãibase.dateformatãibase.timeformat - ã«ãããããã®ãã©ã¼ãããã®ããã©ã«ãå¤ãè¨å®ãããã¨ãå¯è½ã§ãã + PHPè¨å®ãã£ã¬ã¯ãã£ãibase.timestampformatãibase.dateformatã + ibase.timeformatã«ãããããã®ãã©ã¼ãããã®ããã©ã«ãå¤ãè¨å®ã + ããã¨ãå¯è½ã§ãã </para> <note> <para> @@ -630,11 +671,11 @@ </note> <note> <para> - PHP 4.0ã§ã¯ãPHPè¨å®ãã£ã¬ã¯ãã£ãibase.timeformatãibase.timestampformatã« - ååã夿´ããããã£ã¬ã¯ãã£ãibase.dateformatã¨ibase.timeformatã - 追å ãããéå»ã®ãã¼ã¸ã§ã³ã¨ã®äº?æ§ããªã夿´ãè¡ããã¦ãã¾ãã - ãã®å¤æ´ã¯ããã£ã¬ã¯ãã£ãã®ååãããèªä½ã®æ©è½ã«ããä¸è´ããããã« - è¡ããããã®ã§ãã + PHP 4.0ã§ã¯ãPHPè¨å®ãã£ã¬ã¯ãã£ãibase.timeformatã + ibase.timestampformatã«ååã夿´ããããã£ã¬ã¯ãã£ã + ibase.dateformatã¨ibase.timeformatã追å ãããéå»ã®ãã¼ã¸ã§ã³ã¨ + ã®äºææ§ããªã夿´ãè¡ããã¦ãã¾ãããã®å¤æ´ã¯ããã£ã¬ã¯ãã£ãã® + ååãããèªä½ã®æ©è½ã«ããä¸è´ããããã«è¡ããããã®ã§ãã </para> </note> </refsect1> @@ -659,7 +700,8 @@ çµæã»ããã«ããããã£ã¼ã«ãæ°ãæ´æ°ã¨ãã¦è¿ãã¾ãã <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php $dbh = ibase_connect ($host, $username, $password); $stmt = 'SELECT * FROM tblname'; $sth = ibase_query ($dbh, $stmt); @@ -674,38 +716,209 @@ ibase_close ($dbh); ?> +]]> </programlisting> </informalexample> </para> <para> <function>ibase_field_info</function>ãåç §ä¸ããã </para> - <note> - <para> - <function>ibase_num_fields</function>ã¯ç¾å¨ãPHP 4ã§ã¯åä½ãã¾ããã - </para> - </note> </refsect1> </refentry> - <refentry id="function.ibase-errmsg"> + <refentry id='function.ibase-blob-add'> <refnamediv> - <refname>ibase_errmsg</refname> + <refname>ibase_blob_add</refname> <refpurpose> - ã¨ã©ã¼ã¡ãã»ã¼ã¸ãè¿ã + çæãããblobã«ãã¼ã¿ã追å ãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> - <funcdef>string <function>ibase_errmsg</function></funcdef> - <void/> + <funcdef>int <function>ibase_blob_add</function></funcdef> + <paramdef>int <parameter>blob_id</parameter></paramdef> + <paramdef>string <parameter>data</parameter></paramdef> </funcprototype> </funcsynopsis> - <simpara> - ã¨ã©ã¼ã¡ãã»ã¼ã¸ãæããæååãè¿ãã¾ãã - </simpara> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.ibase-blob-cancel'> + <refnamediv> + <refname>ibase_blob_cancel</refname> + <refpurpose> + blobã®çæãåãæ¶ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ibase_blob_cancel</function></funcdef> + <paramdef>int <parameter>blob_id</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.ibase-blob-close'> + <refnamediv> + <refname>ibase_blob_close</refname> + <refpurpose> + blobãéãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ibase_blob_close</function></funcdef> + <paramdef>int <parameter>blob_id</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.ibase-blob-create'> + <refnamediv> + <refname>ibase_blob_create</refname> + <refpurpose> + ãã¼ã¿ã追å ããããã«blobãçæãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ibase_blob_create</function></funcdef> + <paramdef>int + <parameter><optional>link_identifier</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.ibase-blob-echo'> + <refnamediv> + <refname>ibase_blob_echo</refname> + <refpurpose> + ãã©ã¦ã¶ã«blobã®å 容ãåºåãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ibase_blob_echo</function></funcdef> + <paramdef>string <parameter>blob_id_str</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.ibase-blob-get'> + <refnamediv> + <refname>ibase_blob_get</refname> + <refpurpose> + ãªã¼ãã³ããblobãããã¼ã¿ã®ãã¤ãæ°ãåå¾ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ibase_blob_get</function></funcdef> + <paramdef>int <parameter>blob_id</parameter></paramdef> + <paramdef>int <parameter>len</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.ibase-blob-import'> + <refnamediv> + <refname>ibase_blob_import</refname> + <refpurpose> + blobãçæãããã¡ã¤ã«ãã³ãã¼ããéãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ibase_blob_import</function></funcdef> + <paramdef>int + <parameter><optional>link_identifier</optional></parameter> + </paramdef> + <paramdef>int <parameter>file_id</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.ibase-blob-info'> + <refnamediv> + <refname>ibase_blob_info</refname> + <refpurpose> + blobã®é·ãã¨ä»ã®ä¾¿å©ãªæ å ±ãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>object <function>ibase_blob_info</function></funcdef> + <paramdef>string <parameter>blob_id_str</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.ibase-blob-open'> + <refnamediv> + <refname>ibase_blob_open</refname> + <refpurpose> + ãã¼ã¿ã®ä¸é¨ãåå¾ããããã«blobããªã¼ãã³ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ibase_blob_open</function></funcdef> + <paramdef>string <parameter>blob_id</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> </refsect1> </refentry> Index: phpdoc/ja/functions/icap.xml diff -u phpdoc/ja/functions/icap.xml:1.8 phpdoc/ja/functions/icap.xml:1.9 --- phpdoc/ja/functions/icap.xml:1.8 Wed Dec 12 15:53:03 2001 +++ phpdoc/ja/functions/icap.xml Sun Jan 20 00:07:01 2002 @@ -1,17 +1,22 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.9 $ --> <reference id="ref.icap"> <title>ICAP 颿°</title> <titleabbrev>ICAP</titleabbrev> - <partintro> <simpara> - ãããã®é¢æ°ãåä½ãããããã«ã¯ãPHP ã - <option role="configure">--with-icap</option> ãä»ãã¦ã³ã³ãã¤ã« - ããå¿ è¦ãããã¾ãã - ãã®éãicap ã©ã¤ãã©ãªãã¤ã³ã¹ãã¼ã«ããã¦ããå¿ è¦ãããã¾ãã - <ulink url="&url.icap;">&url.icap;</ulink> ãã - ææ°çãå ¥æããã³ã³ãã¤ã«ãã¤ã³ã¹ãã¼ã«ãã¦ãã ããã + ãããã®é¢æ°ãåä½ãããããã«ã¯ãPHP ã<option + role="configure">--with-icap</option> ãä»ãã¦ã³ã³ãã¤ã«ããå¿ è¦ã + ããã¾ãããã®éãicap ã©ã¤ãã©ãªãã¤ã³ã¹ãã¼ã«ããã¦ããå¿ è¦ãã + ãã¾ããããã¯ããµãã¼ãããã¦ãããããåå¾å¯è½ã§ãããã¾ããã </simpara> + <note> + <simpara> + icapã¯ãè¿ãå°æ¥åé¤ããã¾ãããã®ã¢ã¸ã¥ã¼ã«ã¯ãicapã©ã¤ãã©ãªã + ãã¯ããµãã¼ãããã¦ãã¾ãããã«ã¬ã³ãæ©è½ãPHPã§ä½¿ç¨ãããå ´åã¯ã + æ¿ããã«<link linkend="ref.mcal">mcal</link>ã使ç¨ãã¦ä¸ããã + </simpara> + </note> </partintro> <refentry id="function.icap-open"> @@ -443,6 +448,98 @@ </simpara> </listitem> </itemizedlist> + </para> + </refsect1> + </refentry> + + <refentry id='function.icap-create-calendar'> + <refnamediv> + <refname>icap_create_calendar</refname> + <refpurpose> + æ°è¦ã«ã¬ã³ãã使ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>icap_create_calendar</function></funcdef> + <paramdef>int <parameter>stream_id</parameter></paramdef> + <paramdef>string <parameter>calendar</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.icap-rename-calendar'> + <refnamediv> + <refname>icap_rename_calendar</refname> + <refpurpose> + ã«ã¬ã³ãã®ååãå¤ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>icap_rename_calendar</function></funcdef> + <paramdef>int <parameter>stream_id</parameter></paramdef> + <paramdef>string <parameter>old_name</parameter></paramdef> + <paramdef>string <parameter>new_name</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.icap-delete-calendar'> + <refnamediv> + <refname>icap_delete_calendar</refname> + <refpurpose> + ã«ã¬ã³ããåé¤ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>icap_delete_calendar</function></funcdef> + <paramdef>int <parameter>stream_id</parameter></paramdef> + <paramdef>string <parameter>calendar</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.icap-reopen'> + <refnamediv> + <refname>icap_reopen</refname> + <refpurpose> + æ°è¦ã«ã¬ã³ãã¸ã®ICAPã¹ããªã¼ã ãåãªã¼ãã³ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>icap_reopen</function></funcdef> + <paramdef>int <parameter>stream_id</parameter></paramdef> + <paramdef>string <parameter>calendar</parameter></paramdef> + <paramdef>int + <parameter><optional>options</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; </para> </refsect1> </refentry> Index: phpdoc/ja/functions/iconv.xml diff -u phpdoc/ja/functions/iconv.xml:1.4 phpdoc/ja/functions/iconv.xml:1.5 --- phpdoc/ja/functions/iconv.xml:1.4 Wed Dec 12 15:53:03 2001 +++ phpdoc/ja/functions/iconv.xml Sun Jan 20 00:07:01 2002 @@ -1,4 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <reference id="ref.iconv"> <title>iconv 颿°</title> <titleabbrev>iconv</titleabbrev> @@ -50,7 +51,9 @@ <example> <title><function>iconv</function> ã®ä¾</title> <programlisting role="php"> +<![CDATA[ echo iconv("ISO-8859-1","UTF-8","This is test."); +]]> </programlisting> </example> </para> @@ -110,8 +113,10 @@ <example> <title><function>iconv_set_encoding</function> ã®ä¾</title> <programlisting role="php"> +<![CDATA[ iconv_set_encoding("internal_encoding", "UTF-8"); iconv_set_encoding("output_encoding", "ISO-8859-1"); +]]> </programlisting> </example> </para> @@ -156,7 +161,9 @@ <example> <title><function>ob_iconv_handler</function> ã®ä¾</title> <programlisting role="php"> +<![CDATA[ ob_start("ob_iconv_handler"); // åºåãããã¡ãªã³ã°ãéå§ +]]> </programlisting> </example> </para> Index: phpdoc/ja/functions/ifx.xml diff -u phpdoc/ja/functions/ifx.xml:1.13 phpdoc/ja/functions/ifx.xml:1.14 --- phpdoc/ja/functions/ifx.xml:1.13 Wed Dec 12 15:53:04 2001 +++ phpdoc/ja/functions/ifx.xml Sun Jan 20 00:07:01 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> - +<!-- $Revision: 1.14 $ --> <reference id="ref.ifx"> <title>Informix 颿°</title> <titleabbrev>Informix</titleabbrev> @@ -229,7 +229,9 @@ <example> <title>Informix ãã¼ã¿ãã¼ã¹ã¸ã®æ¥ç¶</title> <programlisting role="php"> +<![CDATA[ $conn_id = ifx_connect ("mydb@ol_srv1", "imyself", "mypassword"); +]]> </programlisting> </example> </para> @@ -334,9 +336,11 @@ <example> <title>Informix æ¥ç¶ãéãã</title> <programlisting role="php"> +<![CDATA[ $conn_id = ifx_connect (mydb@ol_srv, "itsme", "mypassword"); ... ã¯ã¨ãªã¼çãå®è¡ ... ifx_close($conn_id); +]]> </programlisting> </example> </para> @@ -430,6 +434,7 @@ <example> <title>"orders" ãã¼ãã«ã®å ¨è¡ã HTML ãã¼ãã«ã¨ãã¦è¡¨ç¤ºãã</title> <programlisting role="php"> +<![CDATA[ ifx_textasvarchar(1); // BLOB ç¨ã« "text mode" ã使ç¨ãã $res_id = ifx_query("select * from orders", $conn_id); if (! $res_id) { @@ -440,26 +445,29 @@ } ifx_htmltbl_result($res_id, "border=\"1\""); ifx_free_result($res_id); +]]> </programlisting> </example> <example> <title>å¤ã "catalog" ãã¼ãã«ã«æ¿å ¥ãã</title> <programlisting role="php"> - // ãã¤ãããã³ããã¹ãã«ã©ã ã«é¢ãã BLOB ID ã使ããã +<![CDATA[ +// ãã¤ãããã³ããã¹ãã«ã©ã ã«é¢ãã BLOB ID ã使ããã $textid = ifx_create_blob(0, 0, "Text column in memory"); $byteid = ifx_create_blob(1, 0, "Byte column in memory"); - // blob id ã blobid é åã«ä¿å +// blob id ã blobid é åã«ä¿å $blobidarray[] = $textid; $blobidarray[] = $byteid; - // ã¯ã¨ãªã¼ãå®è¡ +// ã¯ã¨ãªã¼ãå®è¡ $query = "insert into catalog (stock_num, manu_code, " . "cat_descr,cat_picture) values(1,'HRO',?,?)"; $res_id = ifx_query($query, $conn_id, $blobidarray); if (! $res_id) { - ... error ... + ... ã¨ã©ã¼ ... } - // çµæ id ãè§£æ¾ +// çµæ id ãè§£æ¾ ifx_free_result($res_id); +]]> </programlisting> </example> </para> @@ -700,15 +708,18 @@ <example> <title>Informix affected rows</title> <programlisting role="php"> -$rid = ifx_prepare ("select * from emp where name like " . $name, $connid); +<![CDATA[ +$rid = ifx_prepare ("select * from emp + where name like " . $name, $connid); if (! $rid) { ... error ... } $rowcount = ifx_affected_rows ($rid); if ($rowcount > 1000) { - printf ("Too many rows in result set (%d)\n<br>", $rowcount); - die ("Please restrict your query<br>\n"); + printf ("Too many rows in result set (%d)\n<br>", $rowcount); + die ("Please restrict your query<br>\n"); } +]]> </programlisting> </example> </refsect1> @@ -752,6 +763,7 @@ <example> <title>Informix sqlca.sqlerrd[x] ã®å¤ãåå¾ãã</title> <programlisting role="php"> +<![CDATA[ /* 'sometable' ã®æåã®ã«ã©ã ã¯é£çªã§ããã¨ä»®å®ãã */ $qid = ifx_query("insert into sometable values(0, '2nd column', 'another column') ", $connid)); @@ -760,7 +772,8 @@ } $sqlca = ifx_getsqlca ($qid); $serial_value = $sqlca["sqlerrd1"]; -echo "æ¿å ¥ãããè¡ã®ç¶ãçªå·ã¯ : " . "$serial_value<br>\n"; +echo "æ¿å ¥ãããè¡ã®ç¶ãçªå·ã¯ : " . "$serial_value<br>\n"; +]]> </programlisting> </example> </refsect1> @@ -801,8 +814,7 @@ ã«ããè¿ãããæå¹ãªçµæ ID ã§ãã </para> <para> - <parameter><replaceable><optional>position</optional></replaceable></parameter> - ã¯ããªãã·ã§ã³ + <parameter>position</parameter>ã¯ããªãã·ã§ã³ ãã©ã¡ã¼ã¿ã§ã"ã¹ã¯ãã¼ã«" ã«ã¼ã½ã«ã§ "åå¾" æä½ãè¡ãããã®ãã®ã§ã 次ã®ããã«ãªãã¾ãã "NEXT", "PREVIOUS", "CURRENT", "FIRST", "LAST" ,ã¾ãã¯çªå·ã @@ -823,6 +835,7 @@ <example> <title>Informix è¡ã®åå¾</title> <programlisting role="php"> +<![CDATA[ $rid = ifx_prepare ("select * from emp where name like " . $name, $connid, IFX_SCROLL); if (! $rid) { @@ -830,8 +843,8 @@ } $rowcount = ifx_affected_rows($rid); if ($rowcount > 1000) { - printf ("Too many rows in result set (%d)\n<br>", $rowcount); - die ("Please restrict your query<br>\n"); + printf ("Too many rows in result set (%d)\n<br>", $rowcount); + die ("Please restrict your query<br>\n"); } if (! ifx_do ($rid)) { ... error ... @@ -842,10 +855,11 @@ $fieldvalue = $row[$fieldname]; printf ("%s = %s,", $fieldname, $fieldvalue); } - printf("\n<br>"); + printf("\n<br>"); $row = ifx_fetch_row ($rid, "NEXT"); } ifx_free_result ($rid); +]]> </programlisting> </example> </refsect1> @@ -882,6 +896,7 @@ <example> <title>Informix çµæã HTML ãã¼ãã«ã¨ãã¦åºå</title> <programlisting role="php"> +<![CDATA[ $rid = ifx_prepare ("select * from emp where name like " . $name, $connid, IFX_SCROLL); if (! $rid) { @@ -889,8 +904,8 @@ } $rowcount = ifx_affected_rows ($rid); if ($rowcount > 1000) { - printf ("Too many rows in result set (%d)\n<br>", $rowcount); - die ("Please restrict your query<br>\n"); + printf ("Too many rows in result set (%d)\n<br>", $rowcount); + die ("Please restrict your query<br>\n"); } if (! ifx_do($rid) { ... error ... @@ -899,6 +914,7 @@ ifx_htmltbl_result ($rid, "border=\"2\""); ifx_free_result($rid); +]]> </programlisting> </example> </refsect1> @@ -925,15 +941,17 @@ <example> <title>ãã£ã¼ã«ãåããã³ SQL ãã£ã¼ã«ãå</title> <programlisting role="php"> +<![CDATA[ $types = ifx_fieldtypes ($resultid); if (! isset ($types)) { ... ã¨ã©ã¼å¦ç ... } -for ($i = 0; $i < count($types); $i++) { +for ($i = 0; $i < count($types); $i++) { $fname = key($types); printf("%s :\t type = %s\n", $fname, $types[$fname]); next($types); } +]]> </programlisting> </example> </refsect1> @@ -967,15 +985,17 @@ <example> <title>Informix SQL ãã£ã¼ã«ãããããã£</title> <programlisting role="php"> +<![CDATA[ $properties = ifx_fieldproperties ($resultid); if (! isset($properties)) { ... error ... } -for ($i = 0; $i < count($properties); $i++) { +for ($i = 0; $i < count($properties); $i++) { $fname = key ($properties); printf ("%s:\t type = %s\n", $fname, $properties[$fname]); next ($properties); } +]]> </programlisting> </example> </refsect1> @@ -1518,10 +1538,10 @@ </funcprototype> </funcsynopsis> <para> - SLOB ãªãã¸ã§ã¯ããæååã«æ¸ããã¿ã¾ãã<parameter>bid</parameter> - ã¯åå¨ãã SLOB ID ã<parameter>content</parameter> 㯠- æ¸ãããå 容ã§ãã - ã¨ã©ã¼ã® å ´åã« &false;ããã®ä»ã®å ´åã«æ¸ãããã ãã¤ãæ°ãè¿ãã¾ãã + SLOBãªãã¸ã§ã¯ããæååã«æ¸ããã¿ã¾ãã + <parameter>bid</parameter>ã¯åå¨ãã SLOB ID ã + <parameter>content</parameter> ã¯æ¸ãããå 容ã§ããã¨ã©ã¼ã®å ´åã« + &false;ããã®ä»ã®å ´åã«æ¸ãããã ãã¤ãæ°ãè¿ãã¾ãã </para> </refsect1> </refentry> Index: phpdoc/ja/functions/image.xml diff -u phpdoc/ja/functions/image.xml:1.28 phpdoc/ja/functions/image.xml:1.29 --- phpdoc/ja/functions/image.xml:1.28 Wed Dec 12 15:53:05 2001 +++ phpdoc/ja/functions/image.xml Sun Jan 20 00:07:01 2002 @@ -1,7 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.29 $ --> <reference id="ref.image"> - <title>ã¤ã¡ã¼ã¸é¢æ°</title> - <titleabbrev>ã°ã©ãã£ãã¯ã¹</titleabbrev> + <title>ã¤ã¡ã¼ã¸é¢æ°(image)</title> + <titleabbrev>ã¤ã¡ã¼ã¸</titleabbrev> <partintro> <simpara> @@ -70,8 +71,10 @@ <example> <title>GetImageSize (ãã¡ã¤ã«)</title> <programlisting role="php"> -<?php $size = GetImageSize ("img/flag.jpg"); ?> -<IMG SRC="img/flag.jpg" <?php echo $size[3]; ?> +<![CDATA[ +<?php $size = GetImageSize ("img/flag.jpg"); ?> +<IMG SRC="img/flag.jpg" <?php echo $size[3]; ?> +]]> </programlisting> </example> </para> @@ -79,7 +82,9 @@ <example> <title>GetImageSize (URL)</title> <programlisting role="php"> -<?php $size = GetImageSize ("http://www.php.net/gifs/logo.gif"); ?> +<![CDATA[ +<?php $size = GetImageSize ("http://www.php.net/gifs/logo.gif"); ?> +]]> </programlisting> </example> </para> @@ -96,13 +101,15 @@ <example> <title>IPTC ãè¿ã GetImageSize</title> <programlisting> - <?php - $size = GetImageSize ("testimg.jpg",&$info); - if (isset ($info["APP13"])) { - $iptc = iptcparse ($info["APP13"]); - var_dump ($iptc); - } - ?> +<![CDATA[ +<?php + $size = GetImageSize ("testimg.jpg",&$info); + if (isset ($info["APP13"])) { + $iptc = iptcparse ($info["APP13"]); + var_dump ($iptc); + } +?> +]]> </programlisting> </example> <note> @@ -119,6 +126,49 @@ </refsect1> </refentry> + <refentry id="function.image2wbmp"> + <refnamediv> + <refname>Image2WBMP</refname> + <refpurpose>ãã©ã¦ã¶ã¾ãã¯ãã¡ã¤ã«ã«ã¤ã¡ã¼ã¸ãåºåãã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>image2WBMP</function></funcdef> + <paramdef>int <parameter>im</parameter></paramdef> + <paramdef>string + <parameter><optional>filename</optional></parameter> + </paramdef> + <paramdef>int + <parameter><optional>threshold</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>Image2WBMP</function>ã¯ãã¤ã¡ã¼ã¸ + <parameter>im</parameter>ããfilenameã«<acronym>WBMP</acronym>ãã¡ + ã¤ã«ã使ãã¾ãã<parameter>im</parameter>弿°ã¯ã + <function>ImageCreate</function>ããè¿ããã¾ãã + </para> + <para> + 弿°filenameã¯ãªãã·ã§ã³ã§ãçç¥ãããå ´åã«ã¯ãçã®ã¤ã¡ã¼ã¸ã¹ã + ãªã¼ã ãç´æ¥åºåããã¾ãã<function>header</function>ãç¨ã㦠+ <acronym>image/vnd.wap.wbmp</acronym> content-typeãéä¿¡ããã㨠+ ã«ãããWBMPã¤ã¡ã¼ã¸ã«ç´æ¥åºåããPHPã¹ã¯ãªãããçæå¯è½ã§ãã + </para> + <note> + <para> + WBMPãµãã¼ãã¯ãGD-1.8以éã§PHPãã³ã³ãã¤ã«ãããå ´åã®ã¿å©ç¨å¯è½ + ã§ãã + </para> + </note> + <para> + <function>ImageWBMP</function>ãåç §ä¸ããã + </para> + </refsect1> + </refentry> + <refentry id="function.imagealphablending"> <refnamediv> <refname>ImageAlphaBlending</refname> @@ -182,6 +232,11 @@ æ¹ãå§ç¹ã¨çµç¹ã¯å¼æ°<parameter>s</parameter>㨠<parameter>e</parameter>ã«ãã度(deg)ã§æå®ãã¾ãã </para> + <para> + <function>ImageEllipse</function>, + <function>ImageFilledEllipse</function>, + <function>ImageFilledArc</function>ãåç §ä¸ããã + </para> </refsect1> </refentry> @@ -267,6 +322,9 @@ ãã®é¢æ°ã¯PHP 4.0.6ã§è¿½å ãããGD 2.0.1以éãå¿ è¦ã¨ãã¾ãã </para> </note> + <para> + <function>ImageArc</function>ãåç §ä¸ããã + </para> </refsect1> </refentry> @@ -301,6 +359,9 @@ ãã®é¢æ°ã¯PHP 4.0.6ã§è¿½å ãããGD 2.0.1以éãå¿ è¦ã¨ãã¾ãã </para> </note> + <para> + <function>ImageFilledArc</function>ãåç §ä¸ããã + </para> </refsect1> </refentry> @@ -392,8 +453,10 @@ ç»åä¸ã§ä½¿ç¨ãããåã ã®è²ã使ããéã«ã³ã¼ã«ããå¿ è¦ãããã¾ãã <informalexample> <programlisting role="php"> +<![CDATA[ $white = ImageColorAllocate ($im, 255, 255, 255); $black = ImageColorAllocate ($im, 0, 0, 0); +]]> </programlisting> </informalexample> </para> @@ -427,8 +490,10 @@ <function>ImageColorAllocate</function>ã§ç¢ºä¿ãããè²ãéæ¾ãã¾ãã <informalexample> <programlisting role="php"> +<![CDATA[ $white = ImageColorAllocate($im, 255, 255, 255); ImageColorDeAllocate($im, $white); +]]> </programlisting> </informalexample> </para> @@ -526,6 +591,30 @@ </refsect1> </refentry> + <refentry id='function.imagecolorclosesthwb'> + <refnamediv> + <refname>ImageColorClosestThwb</refname> + <refpurpose> + æå®ããè²ã«æãè¿ãhueãç½ãé»ãæããè²ã®ã¤ã³ããã¯ã¹ãå¾ã + </refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagecolorclosesthwb</function></funcdef> + <paramdef>int <parameter>im</parameter></paramdef> + <paramdef>int <parameter>red</parameter></paramdef> + <paramdef>int <parameter>green</parameter></paramdef> + <paramdef>int <parameter>blue</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + <refentry id="function.imagecolorexact"> <refnamediv> <refname>ImageColorExact</refname> @@ -663,8 +752,8 @@ <funcprototype> <funcdef>int <function>imagegammacorrect</function></funcdef> <paramdef>int <parameter>im</parameter></paramdef> - <paramdef>double <parameter>inputgamma</parameter></paramdef> - <paramdef>double <parameter>outputgamma</parameter></paramdef> + <paramdef>float <parameter>inputgamma</parameter></paramdef> + <paramdef>float <parameter>outputgamma</parameter></paramdef> </funcprototype> </funcsynopsis> <para> @@ -856,6 +945,11 @@ 100ã®å ´åããã®é¢æ°ã®åä½ã¯ã<function>ImageCopy</function>ã¨åã ã¨ãªãã¾ãã </para> + <note> + <para> + ãã®é¢æ°ã¯PHP 4.0.6ã§è¿½å ããã¾ããã + </para> + </note> </refsect1> </refentry> @@ -1023,15 +1117,17 @@ æ°è¦ã«GDã¤ã¡ã¼ã¸ã¹ããªã¼ã ã使ããã¤ã¡ã¼ã¸ãåºåãã¾ãã </title> <programlisting role="php"> -<? +<![CDATA[ +<?php header ("Content-type: image/png"); $im = @ImageCreate (50, 100) - or die ("Cannot Initialize new GD image stream"); + or die ("Cannot Initialize new GD image stream"); $background_color = ImageColorAllocate ($im, 255, 255, 255); $text_color = ImageColorAllocate ($im, 233, 14, 91); ImageString ($im, 1, 5, 5, "A Simple Text String", $text_color); ImagePng ($im); ?> +]]> </programlisting> </example> </refsect1> @@ -1106,6 +1202,73 @@ </refsect1> </refentry> + <refentry id='function.imagecreatefromgd'> + <refnamediv> + <refname>ImageCreateFromGD</refname> + <refpurpose> + GDãã¡ã¤ã«ã¾ãã¯URLããæ°è¦ã¤ã¡ã¼ã¸ãçæãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagecreatefromgd</function></funcdef> + <paramdef>string <parameter>filename</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.imagecreatefromgd2'> + <refnamediv> + <refname>ImageCreateFromGD2</refname> + <refpurpose> + GD2ãã¡ã¤ã«ã¾ãã¯URLããæ°è¦ã¤ã¡ã¼ã¸ãçæãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagecreatefromgd2</function></funcdef> + <paramdef>string <parameter>filename</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.imagecreatefromgd2part'> + <refnamediv> + <refname>ImageCreateFromGD2Part</refname> + <refpurpose> + GD2ãã¡ã¤ã«ã¾ãã¯URLã®æå®ããé¨åããæ°è¦ã¤ã¡ã¼ã¸ãçæãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagecreatefromgd2part</function></funcdef> + <paramdef>string <parameter>filename</parameter></paramdef> + <paramdef>int <parameter>srcX</parameter></paramdef> + <paramdef>int <parameter>srcY</parameter></paramdef> + <paramdef>int <parameter>width</parameter></paramdef> + <paramdef>int <parameter>height</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + <refentry id="function.imagecreatefromgif"> <refnamediv> <refname>ImageCreateFromGif</refname> @@ -1133,18 +1296,20 @@ 使æã®ã¨ã©ã¼ãå¦çããä¾ (vic@zymsys.com ã«ãã) </title> <programlisting role="php"> - function LoadGif ($imgname) - { +<![CDATA[ +function LoadGif ($imgname) { $im = @imagecreatefromgif ($imgname); /* ãªã¼ãã³ãè¡ã */ if (!$im) { /* 失æãããã©ããã調ã¹ã */ $im = ImageCreate (150,30); /* 空ã®ç»åã使 */ $bgc = ImageColorAllocate ($im,255,255,255); $tc = ImageColorAllocate ($im,0,0,0); ImageFilledRectangle ($im,0,0,150,30,$bgc); - ImageString ($im,1,5,5,"Error loading $imgname",$tc); /* errmsg ãåºå */ + /* errmsg ãåºå */ + ImageString ($im,1,5,5,"Error loading $imgname",$tc); } return $im; } +]]> </programlisting> </example> <note> @@ -1184,8 +1349,8 @@ 使æã®ã¨ã©ã¼ãå¦çããä¾ (vic@zymsys.comã«ãã) </title> <programlisting role="php"> -function LoadJpeg ($imgname) -{ +<![CDATA[ +function LoadJpeg ($imgname) { $im = @imagecreatefromjpeg ($imgname); /* ãªã¼ãã³ã試ã¿ã */ if (!$im) { /* ãªã¼ãã³ã«å¤±æããå ´å */ $im = ImageCreate (150,30); /* 空ã®ç»åã使 */ @@ -1196,6 +1361,7 @@ } return $im; } +]]> </programlisting> </example> </para> @@ -1230,8 +1396,8 @@ 使æã®ã¨ã©ã¼ãå¦çããä¾(vic@zymsys.comã«ãã) </title> <programlisting role="php"> -function LoadPNG ($imgname) -{ +<![CDATA[ +function LoadPNG ($imgname) { $im = @imagecreatefrompng ($imgname); /* ãªã¼ãã³ã試ã¿ã */ if (!$im) { /* 失æããå ´å */ $im = ImageCreate (150,30); /* 空ã®ç»åã使 */ @@ -1242,6 +1408,7 @@ } return $im; } +]]> </programlisting> </example> </para> @@ -1279,6 +1446,7 @@ 使æã®ã¨ã©ã¼ãå¦çããä¾ (vic@zymsys.com ã«ãã) </title> <programlisting role="php"> +<![CDATA[ function LoadWBMP ($imgname) { $im = @ImageCreateFromWBMP ($imgname); /* ãªã¼ãã³ãã */ if (!$im) { /* 失æãããã©ããå¤å® */ @@ -1291,9 +1459,16 @@ } return $im; } +]]> </programlisting> </example> </para> + <note> + <para> + WBMPãµãã¼ãã¯ãGD-1.8以éã§ã³ã³ãã¤ã«ãããPHPã§ã®ã¿å©ç¨å¯è½ã§ + ãã + </para> + </note> </refsect1> </refentry> @@ -1319,6 +1494,46 @@ </refsect1> </refentry> + <refentry id="function.imagecreatefromxbm"> + <refnamediv> + <refname>ImageCreateFromXBM</refname> + <refpurpose>ãã¡ã¤ã«åã¯URLããæ°è¦ã¤ã¡ã¼ã¸ãçæãã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagecreatefromxbm</function></funcdef> + <paramdef>string <parameter>filename</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>ImageCreateFromXBM</function>ã¯ãæå®ããfilenameããå¾ + ãããã¤ã¡ã¼ã¸ã表ãã¤ã¡ã¼ã¸IDãè¿ãã¾ãã + </para> + </refsect1> + </refentry> + + <refentry id="function.imagecreatefromxpm"> + <refnamediv> + <refname>ImageCreateFromXPM</refname> + <refpurpose>ãã¡ã¤ã«ã¾ãã¯URLããæ°è¦ã¤ã¡ã¼ã¸ãçæãã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagecreatefromxpm</function></funcdef> + <paramdef>string <parameter>filename</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>ImageCreateFromXPM</function>ã¯ãæå®ããfilenameããå¾ + ãããã¤ã¡ã¼ã¸ã表ãã¤ã¡ã¼ã¸IDãè¿ãã¾ãã + </para> + </refsect1> + </refentry> + <refentry id="function.imagedashedline"> <refnamediv> <refname>ImageDashedLine</refname> @@ -1338,13 +1553,8 @@ </funcprototype> </funcsynopsis> <para> - <function>ImageDashedLine</function>ã¯ãç»å<parameter>im</parameter>ã« - (<parameter>x1</parameter>, <parameter>y1</parameter>)ãã - (<parameter>x2</parameter>, <parameter>y2</parameter>)ã¾ã§(å·¦ä¸ã0,0) - <parameter>col</parameter>è²ã§ç ´ç·ãæç»ãã¾ãã - </para> - <para> - <function>imageline</function>ãåèã«ãã¦ãã ããã + ããã¯å¤ã颿°ã§ããæ¿ããã«<function>ImageSetStyle</function>㨠+ <function>ImageLine</function>ã®çµã¿åãã使ç¨ãã¦ä¸ããã </para> </refsect1> </refentry> @@ -1523,6 +1733,54 @@ </refsect1> </refentry> + <refentry id='function.imagegd'> + <refnamediv> + <refname>ImageGD</refname> + <refpurpose> + GDã¤ã¡ã¼ã¸ããã©ã¦ã¶ã¾ãã¯ãã¡ã¤ã«ã«åºåãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagegd</function></funcdef> + <paramdef>int <parameter>im</parameter></paramdef> + <paramdef>string + <parameter><optional>filename</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.imagegd2'> + <refnamediv> + <refname>ImageGD2</refname> + <refpurpose> + GD2ã¤ã¡ã¼ã¸ããã©ã¦ã¶ã¾ãã¯ãã¡ã¤ã«ã«åºåãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagegd2</function></funcdef> + <paramdef>int <parameter>im</parameter></paramdef> + <paramdef>string + <parameter><optional>filename</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + <refentry id="function.imagegif"> <refnamediv> <refname>ImageGif</refname> @@ -1572,7 +1830,8 @@ ãã³ã¼ãã«ç½®æãã¦ä¸ããã <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php if (function_exists("imagegif")) { Header("Content-type: image/gif"); ImageGIF($im); @@ -1592,7 +1851,8 @@ else { die("ãã®PHPãµã¼ãã¼ã§ã¯ã¤ã¡ã¼ã¸ã¯ãµãã¼ãããã¦ãã¾ãã"); } -?> +?> +]]> </programlisting> </informalexample> </para> @@ -1605,12 +1865,14 @@ ã§ãã <informalexample> <programlisting role="php"> -if (ImageTypes() & IMG_GIF) { - Header ("Content-type: image/gif"); - ImageGif ($im); +<![CDATA[ +if (ImageTypes() & IMG_GIF) { + Header("Content-type: image/gif"); + ImageGif($im); } -elseif (ImageTypes() & IMG_JPG) { +elseif (ImageTypes() & IMG_JPG) { ... çã +]]> </programlisting> </informalexample> </para> @@ -1653,8 +1915,12 @@ ã¯ãã®ãã¡ã¤ã«ã«ã¤ã¡ã¼ã¸ãåºåãã¾ãã <informalexample> <programlisting role="php"> +<![CDATA[ +<?php $im = ImageCreateFromPng("test.png"); ImagePng($im); +?> +]]> </programlisting> </informalexample> </para> @@ -1907,6 +2173,31 @@ </refsect1> </refentry> + <refentry id="function.imagepalettecopy"> + <refnamediv> + <refname>ImagePaletteCopy</refname> + <refpurpose> + ããã¤ã¡ã¼ã¸ããä»ã®ã¤ã¡ã¼ã¸ã«ãã¬ãããã³ãã¼ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagepalettecopy</function></funcdef> + <paramdef>resource <parameter>destination</parameter></paramdef> + <paramdef>resource <parameter>source</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>imagepalettecopy</function>ã¯ã + <parameter>source</parameter>ã¤ã¡ã¼ã¸ãã + <parameter>destination</parameter>ã¤ã¡ã¼ã¸ã«ãã¬ãããã³ãã¼ãã¾ + ãã + </para> + </refsect1> + </refentry> + <refentry id="function.imagepolygon"> <refnamediv> <refname>ImagePolygon</refname> @@ -2150,7 +2441,8 @@ </para> <para> <programlisting role="php"> -<?php +<![CDATA[ +<?php Header ("Content-type: image/jpeg"); $im = ImageCreate (350, 45); $black = ImageColorAllocate ($im, 0, 0, 0); @@ -2162,7 +2454,8 @@ ImagePsFreeFont($font); ImageJpeg($im, "", 100);//for best quality... your mileage may vary ImageDestroy ($im); -?> +?> +]]> </programlisting> </para> <para> @@ -2182,7 +2475,7 @@ <funcprototype> <funcdef>bool <function>imagepsextendfont</function> </funcdef> <paramdef>int <parameter>font_index</parameter></paramdef> - <paramdef>double <parameter>extend</parameter></paramdef> + <paramdef>float <parameter>extend</parameter></paramdef> </funcprototype> </funcsynopsis> <para> @@ -2204,7 +2497,7 @@ <funcprototype> <funcdef>bool <function>imagepsslantfont</function></funcdef> <paramdef>int <parameter>font_index</parameter></paramdef> - <paramdef>double <parameter>slant</parameter></paramdef> + <paramdef>float <parameter>slant</parameter></paramdef> </funcprototype> </funcsynopsis> <para> @@ -2234,10 +2527,18 @@ <paramdef>int <parameter>background</parameter></paramdef> <paramdef>int <parameter>x</parameter></paramdef> <paramdef>int <parameter>y</parameter></paramdef> - <paramdef>int <parameter>space</parameter></paramdef> - <paramdef>int <parameter>tightness</parameter></paramdef> - <paramdef>float <parameter>angle</parameter></paramdef> - <paramdef>int <parameter>antialias_steps</parameter></paramdef> + <paramdef>int + <parameter><optional>space</optional></parameter> + </paramdef> + <paramdef>int + <parameter><optional>tightness</optional></parameter> + </paramdef> + <paramdef>float + <parameter><optional>angle</optional></parameter> + </paramdef> + <paramdef>int + <parameter><optional>antialias_steps</optional></parameter> + </paramdef> </funcprototype> </funcsynopsis> <para> @@ -2411,6 +2712,74 @@ </refsect1> </refentry> + <refentry id="function.imagesetstyle"> + <refnamediv> + <refname>ImageSetStyle</refname> + <refpurpose>ç·æç»ç¨ã®ã¹ã¿ã¤ã«ãè¨å®ãã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagesetstyle</function></funcdef> + <paramdef>resource <parameter>im</parameter></paramdef> + <paramdef>array <parameter>style</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>ImageSetStyle</function>ã¯ãç¹å¥ãª + <literal>IMG_COLOR_STYLED</literal>ã¾ãã¯è²ãæããã¤ã¡ã¼ã¸ã®ç· + <literal>IMG_COLOR_STYLEDBRUSHED</literal>ãæç»ããéã« + (<function>ImageLine</function>㨠+ <function>ImagePolygon</function>ã®ãããª) + å ¨ã¦ã®ç·æç»é¢æ°ã§ä½¿ç¨ãããã¹ã¿ã¤ã«ãè¨å®ãã¾ãã + </para> + <para> + ãã©ã¡ã¼ã¿<parameter>style</parameter>ã¯ãã¯ã»ã«ã®é åã§ããä»¥ä¸ + ã®ä¾ã¯ããã£ã³ãã¹ã®å·¦ä¸ããå³ä¸é ã«ç ´ç·ãæç»ããã¹ã¯ãªããã§ãã + <example> + <title>ImageSetStyle</title> + <programlisting role="php"> +<![CDATA[ +<?php +Header ("Content-type: image/png"); +$im = imagecreate (100, 100); +$w = ImageColorAllocate ($im, 255, 255, 255); +$red = ImageColorAllocate ($im, 255, 0, 0); + +/* Draw a dashed line, 5 red pixels, 5 white pixels */ +$style=array($red,$red,$red,$red,$red,$w,$w,$w,$w,$w); +ImageSetStyle($im, $style); +ImageLine($im, 0, 0, 100, 100, IMG_COLOR_STYLED); + +/* Draw a line of happy faces using ImageSetBrush() with ImageSetStyle */ +$style=array($w,$w,$w,$w,$w,$w,$w,$w,$w,$w,$w,$w,$red); +ImageSetStyle($im, $style); + +$brush=ImageCreateFromPng("http://www.libpng.org/pub/png/images/smile.happy.png"); +ImageColorTransparent($brush, $w); +ImageSetBrush($im, $brush); +ImageLine($im, 100, 0, 0, 100, IMG_COLOR_STYLEDBRUSHED); + +ImagePng($im); +ImageDestroy ($im); +?> +]]> + </programlisting> + </example> + </para> + <para> + <function>ImageSetBrush</function>, + <function>ImageLine</function>ãåç §ä¸ããã + </para> + <note> + <para> + ãã®é¢æ°ã¯ãPHP 4.0.6ã§è¿½å ããã¾ããã + </para> + </note> + </refsect1> + </refentry> + <refentry id="function.imagesettile"> <refnamediv> <refname>ImageSetTile</refname> @@ -2704,6 +3073,33 @@ </refsect1> </refentry> + <refentry id='function.imageftbbox'> + <refnamediv> + <refname>ImageFtBBox</refname> + <refpurpose> + freetype2ã«ãããã©ã³ããç¨ããããã¹ããå²ãç®±ãåå¾ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>imageftbbox</function></funcdef> + <paramdef>int <parameter>size</parameter></paramdef> + <paramdef>int <parameter>angle</parameter></paramdef> + <paramdef>string <parameter>font_file</parameter></paramdef> + <paramdef>string <parameter>text</parameter></paramdef> + <paramdef>array + <parameter><optional>extrainfo</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + <refentry id="function.imagettftext"> <refnamediv> <refname>ImageTTFText</refname> @@ -2771,15 +3167,18 @@ <example> <title>ImageTTFText</title> <programlisting> -<?php -Header("Content-type: image/gif"); -$im = imagecreate(400,30); -$black = ImageColorAllocate($im, 0,0,0); -$white = ImageColorAllocate($im, 255,255,255); -ImageTTFText($im, 20, 0, 10, 20, $white, "/path/arial.ttf", "Testing... Omega: &#937;"); -ImageGif($im); -ImageDestroy($im); -?> +<![CDATA[ +<?php +Header ("Content-type: image/gif"); +$im = imagecreate (400, 30); +$black = ImageColorAllocate ($im, 0, 0, 0); +$white = ImageColorAllocate ($im, 255, 255, 255); +ImageTTFText ($im, 20, 0, 10, 20, $white, "/path/arial.ttf", + "Testing... Omega: Ω"); +ImageGif ($im); +ImageDestroy ($im); +?> +]]> </programlisting> </example> </para> @@ -2793,6 +3192,37 @@ </refsect1> </refentry> + <refentry id='function.imagefttext'> + <refnamediv> + <refname>ImageFtText</refname> + <refpurpose> + FreeType 2ã«ãããã©ã³ããç¨ãã¦ã¤ã¡ã¼ã¸ã«ããã¹ããæç»ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>imagefttext</function></funcdef> + <paramdef>int <parameter>im</parameter></paramdef> + <paramdef>int <parameter>size</parameter></paramdef> + <paramdef>int <parameter>angle</parameter></paramdef> + <paramdef>int <parameter>x</parameter></paramdef> + <paramdef>int <parameter>y</parameter></paramdef> + <paramdef>int <parameter>col</parameter></paramdef> + <paramdef>string <parameter>font_file</parameter></paramdef> + <paramdef>string <parameter>text</parameter></paramdef> + <paramdef>array + <parameter><optional>extrainfo</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + <refentry id="function.imagetypes"> <refnamediv> <refname>ImageTypes</refname> @@ -2811,22 +3241,102 @@ <para> ãã®é¢æ°ã¯ãPHPã«ãªã³ã¯ããã¦ããGDã®ãã¼ã¸ã§ã³ã§ãµãã¼ãããã¦ã ãã¤ã¡ã¼ã¸ã®å½¢å¼ã«å¯¾å¿ããããããã£ã¼ã«ããè¿ãã¾ããæ¬¡ã®ãã - ããè¿ããã¾ããIMG_GIF | IMG_JPG | IMG_PNG | IMG_WBMP - ä¾ãã°ãPNGã®ãµãã¼ãã確èªããã«ã¯ã次ã®ããã«ãã¾ãã + ããè¿ããã¾ãã<literal>IMG_GIF</literal> | + <literal>IMG_JPG</literal> | <literal>IMG_PNG</literal> | + <literal>IMG_WBMP</literal> ä¾ãã°ãPNGã®ãµãã¼ãã確èªããã«ã¯ã + 次ã®ããã«ãã¾ãã <example> <title>ImageTypes</title> <programlisting role="php"> -<?php -if(ImageTypes() & IMG_PNG) { +<![CDATA[ +<?php +if(ImageTypes() & IMG_PNG) { echo "PNG ãµãã¼ããæå¹ã§ã"; } - ?> +?> +]]> </programlisting> </example> </para> </refsect1> </refentry> + <refentry id="function.jpeg2wbmp"> + <refnamediv> + <refname>JPEG2WBMP</refname> + <refpurpose> + JPEGã¤ã¡ã¼ã¸ãã¡ã¤ã«ããWBMPã¤ã¡ã¼ã¸ãã¡ã¤ã«ã«å¤æãã + </refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>jpeg2wbmp</function></funcdef> + <paramdef>string <parameter>jpegname</parameter></paramdef> + <paramdef>string <parameter>wbmpname</parameter></paramdef> + <paramdef>int <parameter>d_height</parameter></paramdef> + <paramdef>int <parameter>d_width</parameter></paramdef> + <paramdef>int <parameter>threshold</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + <parameter>jpegname</parameter> JPEGãã¡ã¤ã«ããWBMPãã©ã¼ããã + ã«å¤æãã<parameter>wbmpname</parameter>ã¨ãã¦ä¿åãã¾ãã + <parameter>d_height</parameter>ã¨<parameter>d_width</parameter>ã + æå®ããã¨ãåºåã¤ã¡ã¼ã¸ã®é«ãã¨å¹ ãæå®ãã¾ãã + </para> + <para> + <note> + <para> + WBMPãµãã¼ãã¯ãGD-1.8以éã§ã³ã³ãã¤ã«ããPHPã§ã®ã¿å©ç¨å¯è½ã§ãã + </para> + </note> + </para> + <para> + <function>png2wbmp</function>ãåç §ä¸ããã + </para> + </refsect1> + </refentry> + + <refentry id="function.png2wbmp"> + <refnamediv> + <refname>PNG2WBMP</refname> + <refpurpose> + PNGã¤ã¡ã¼ã¸ãã¡ã¤ã«ããWBMPã¤ã¡ã¼ã¸ãã¡ã¤ã«ã«å¤æãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>png2wbmp</function></funcdef> + <paramdef>string <parameter>pngname</parameter></paramdef> + <paramdef>string <parameter>wbmpname</parameter></paramdef> + <paramdef>int <parameter>d_height</parameter></paramdef> + <paramdef>int <parameter>d_width</parameter></paramdef> + <paramdef>int <parameter>threshold</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + <parameter>pngname</parameter> PNGãã¡ã¤ã«ããWBMPãã©ã¼ããã + ã«å¤æãã<parameter>wbmpname</parameter>ã¨ãã¦ä¿åãã¾ãã + <parameter>d_height</parameter>ã¨<parameter>d_width</parameter>ã + æå®ããã¨ãåºåã¤ã¡ã¼ã¸ã®é«ãã¨å¹ ãæå®ãã¾ãã + </para> + <para> + <note> + <para> + WBMPãµãã¼ãã¯ãGD-1.8以éã§ã³ã³ãã¤ã«ããPHPã§ã®ã¿å©ç¨å¯è½ã§ãã + </para> + </note> + </para> + <para> + <function>jpeg2wbmp</function>ãåç §ä¸ããã + </para> + </refsect1> + </refentry> + <refentry id="function.read-exif-data"> <refnamediv> <refname>read_exif_data</refname> @@ -2851,14 +3361,15 @@ <example> <title>read_exif_data</title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $exif = read_exif_data ('p0001807.jpg'); while(list($k,$v)=each($exif)) { - echo "$k: $v<br>\n"; + echo "$k: $v<br>\n"; } ?> -åºå: +Output: FileName: p0001807.jpg FileDateTime: 929353056 FileSize: 378599 @@ -2879,6 +3390,7 @@ RawFocusDistance: 16.659999847412 Orientation: 1 ExifVersion: 0200 +]]> </programlisting> </example> </para> @@ -2892,6 +3404,31 @@ ãã®é¢æ°ã¯ãGDã¤ã¡ã¼ã¸ã©ã¤ãã©ãªãå¿ è¦ã¨ãã¾ããã </simpara> </note> + </para> + </refsect1> + </refentry> + + <refentry id='function.iptcembed'> + <refnamediv> + <refname>iptcembed</refname> + <refpurpose> + ãã¤ããªIPTCãã¼ã¿ãJPEGã¤ã¡ã¼ã¸ã«åããã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>iptcembed</function></funcdef> + <paramdef>string <parameter>iptcdata</parameter></paramdef> + <paramdef>string <parameter>jpeg_file_name</parameter></paramdef> + <paramdef>int + <parameter><optional>spool</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; </para> </refsect1> </refentry>
Index: phpdoc/ja/functions/gettext.xml diff -u phpdoc/ja/functions/gettext.xml:1.8 phpdoc/ja/functions/gettext.xml:1.9 --- phpdoc/ja/functions/gettext.xml:1.8 Wed Dec 12 15:52:58 2001 +++ phpdoc/ja/functions/gettext.xml Sun Jan 20 00:07:01 2002 @@ -1,4 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.9 $ --> <reference id="ref.gettext"> <title>GNU Gettext</title> <titleabbrev>gettext</titleabbrev> @@ -32,6 +33,29 @@ </refsect1> </refentry> + <refentry id='function.bind-textdomain-codeset'> + <refnamediv> + <refname>bind_textdomain_codeset</refname> + <refpurpose> + DOMAINã¡ãã»ã¼ã¸ã«ã¿ãã°ããã®ã¡ãã»ã¼ã¸ã夿´ãããæåã¨ã³ã³ã¼ + ãã£ã³ã°ãæå®ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>bind_textdomain_codeset</function></funcdef> + <paramdef>string <parameter>domain</parameter></paramdef> + <paramdef>string <parameter>codeset</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + <refentry id="function.dcgettext"> <refnamediv> <refname>dcgettext</refname> @@ -54,6 +78,30 @@ </refsect1> </refentry> + <refentry id='function.dcngettext'> + <refnamediv> + <refname>dcngettext</refname> + <refpurpose> + dcgettext()ã®è¤æ°ç</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>dcngettext</function></funcdef> + <paramdef>string <parameter>domain</parameter></paramdef> + <paramdef>string <parameter>msgid1</parameter></paramdef> + <paramdef>string <parameter>msgid2</parameter></paramdef> + <paramdef>int <parameter>n</parameter></paramdef> + <paramdef>int <parameter>category</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + <refentry id="function.dgettext"> <refnamediv> <refname>dgettext</refname> @@ -69,8 +117,30 @@ </funcprototype> </funcsynopsis> <para> - 颿°<function>dgettext</function>ã«ãã - åä¸ã®ã¡ãã»ã¼ã¸åç §ã«ã¤ãã¦ã«ã¬ã³ãã®ãã¡ã¤ã³ã䏿¸ããããã¨ãã§ãã¾ãã + 颿°<function>dgettext</function>ã«ããåä¸ã®ã¡ãã»ã¼ã¸åç §ã«ã¤ã + ã¦ã«ã¬ã³ãã®ãã¡ã¤ã³ã䏿¸ããããã¨ãã§ãã¾ãã + </para> + </refsect1> + </refentry> + + <refentry id='function.dngettext'> + <refnamediv> + <refname>dcngettext</refname> + <refpurpose>dcgettext()ã®è¤æ°åã§ã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>dcngettext</function></funcdef> + <paramdef>string <parameter>domain</parameter></paramdef> + <paramdef>string <parameter>msgid1</parameter></paramdef> + <paramdef>string <parameter>msgid2</parameter></paramdef> + <paramdef>int <parameter>n</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; </para> </refsect1> </refentry> @@ -96,7 +166,8 @@ <example> <title><function>gettext</function>-check</title> <programlisting> -<?php +<![CDATA[ +<?php // ãã¤ãèªã«è¨å®ãã putenv ("LANG=de"); @@ -109,8 +180,30 @@ // ãã¹ãã¡ãã»ã¼ã¸ãåºåãã print (gettext ("Welcome to My PHP Application")); ?> +]]> </programlisting> </example> + </refsect1> + </refentry> + + <refentry id="function.ngettext"> + <refnamediv> + <refname>ngettext</refname> + <refpurpose>gettextã®è¤æ°ç</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ngettext</function></funcdef> + <paramdef>string <parameter>msgid1</parameter></paramdef> + <paramdef>string <parameter>msgid2</parameter></paramdef> + <paramdef>int <parameter>n</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> </refsect1> </refentry> Index: phpdoc/ja/functions/gmp.xml diff -u phpdoc/ja/functions/gmp.xml:1.8 phpdoc/ja/functions/gmp.xml:1.9 --- phpdoc/ja/functions/gmp.xml:1.8 Wed Dec 12 15:52:59 2001 +++ phpdoc/ja/functions/gmp.xml Sun Jan 20 00:07:01 2002 @@ -1,4 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.9 $ --> <reference id="ref.gmp"> <title>GMP 颿°</title> <titleabbrev>GMP</titleabbrev> @@ -39,16 +40,18 @@ <example> <title>GMP ã使ç¨ããéä¹é¢æ°</title> <programlisting role="php"> -<?php -function fact($x) { - if($x <= 1) +<![CDATA[ +<?php +function fact ($x) { + if ($x <= 1) return 1; - else - return gmp_mul($x,fact($x-1)); + else + return gmp_mul ($x, fact ($x-1)); } -print gmp_strval(fact(1000))."\n"; +print gmp_strval (fact (1000)) . "\n"; ?> +]]> </programlisting> </example> ãã®ä¾ã¯ã1000ã®éä¹(é常ã«å¤§ããªæ°ã§ã)ãé常ã«é«éã«è¨ç®ãã¾ãã @@ -77,10 +80,12 @@ <example> <title>GMP æ°ãçæãã</title> <programlisting role="php"> -<?php - $a = gmp_init(123456); - $b = gmp_init("0xFFFFDEBACDFEDF7200"); +<![CDATA[ +<?php + $a = gmp_init (123456); + $b = gmp_init ("0xFFFFDEBACDFEDF7200"); ?> +]]> </programlisting> </example> </para> @@ -149,10 +154,12 @@ <example> <title>GMP æ°ãæååã«å¤æãã</title> <programlisting role="php"> -<?php - $a = gmp_init("0x41682179fbf5"); - printf("Decimal: %s, 36-based: %s", gmp_strval($a), gmp_strval($a,36)); +<![CDATA[ +<?php + $a = gmp_init("0x41682179fbf5"); + printf ("Decimal: %s, 36-based: %s", gmp_strval($a), gmp_strval($a,36)); ?> +]]> </programlisting> </example> </para> @@ -344,11 +351,14 @@ <example> <title>GMP æ°ã®å²ç®</title> <programlisting role="php"> -<?php - $a = gmp_init("0x41682179fbf5"); - $res = gmp_div_qr($a, "0xDEFE75"); - printf("Result is: q - %s, r - %s", gmp_strval($res[0]), gmp_strval($res[1])); +<![CDATA[ +<?php + $a = gmp_init ("0x41682179fbf5"); + $res = gmp_div_qr ($a, "0xDEFE75"); + printf("Result is: q - %s, r - %s", + gmp_strval ($res[0]), gmp_strval ($res[1])); ?> +]]> </programlisting> </example> </para> @@ -461,6 +471,27 @@ </funcsynopsis> <para> -<parameter>a</parameter> ãè¿ãã¾ãã + </para> + </refsect1> + </refentry> + + <refentry id='function.gmp-com'> + <refnamediv> + <refname>gmp_com</refname> + <refpurpose> + aã®è£æ°ãè¨ç®ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>resource <function>gmp_com</function></funcdef> + <paramdef>resource <parameter>a</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; </para> </refsect1> </refentry> Index: phpdoc/ja/functions/http.xml diff -u phpdoc/ja/functions/http.xml:1.17 phpdoc/ja/functions/http.xml:1.18 --- phpdoc/ja/functions/http.xml:1.17 Wed Dec 12 15:53:00 2001 +++ phpdoc/ja/functions/http.xml Sun Jan 20 00:07:01 2002 @@ -1,4 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.18 $ --> <reference id="ref.http"> <title>HTTPé¢é£ã®é¢æ°</title> <titleabbrev>HTTP</titleabbrev> @@ -41,8 +42,10 @@ ãåã®è¤æ°ã®ããããå¼·å¶çã«çæãã¾ããä¾ãã°ã <informalexample> <programlisting role="php"> -header('www-authenticate: Negociate'); -header('www-authenticate: NTLM',false); +<![CDATA[ +header('WWW-Authenticate: Negotiate'); +header('WWW-Authenticate: NTLM',false); +]]> </programlisting> </informalexample> </para> @@ -54,40 +57,97 @@ 人ã«ã¨ã£ã¦ã¯ãçè§£ãã¦ããã¹ãéè¦ãªãã¨ã¨ãªãã¾ãã <informalexample> <programlisting role="php"> +<![CDATA[ header("Location: http://www.php.net/"); /* ãã©ã¦ã¶ãPHP Web ãµã¤ãã« ãªãã¤ã¬ã¯ããã */ exit; /* ãªãã¤ã¬ã¯ããè¡ãéã«ä»¥ä¸ã®ã³ã¼ãã å®è¡ãããªãããã«ãã */ +]]> </programlisting> </informalexample> </para> - <para> - 2çªç®ã®ç¹å¥ãªãããã¯ãæåå"HTTP/"ããå§ã¾ãå ¨ã¦ã®ã - ãã(大æåã»å°æåã¯åºå¥ããã¾ãã)ã§ããä¾ãã°ã - Apacheãã£ã¬ã¯ãã£ãErrorDocument 404ã§ããPHPã¹ã¯ãªãããæå®ã - ã¦ããå ´åããã®PHPã¹ã¯ãªãããã¹ãã¼ã¿ã¹ã³ã¼ã404ãçæãããã - ã«ããã¨è¯ãã§ãããããã®å ´åããã®ã¹ã¯ãªããã®ä¸ã«ä»¥ä¸ã®ããã« - è¨è¿°ãã¾ãã + <note> + <para> + HTTP/1.1ã§ã¯ãã¹ãã¼ã ããã¹ãåã絶対ãã¹ãå«ã絶対 + <acronym>URI</acronym>ã<ulink + url="&spec.http1.1;-sec14.html#sec14.30">Location:</ulink> + ã®å¼æ°ã¨ãã¦å¿ è¦ã§ãããããã¤ãã®ã¯ã©ã¤ã¢ã³ãã§ã¯ç¸å¯¾URIãåã + ã¤ãã¾ããé常ãç¸å¯¾URIãã絶対URIã使ããããã« + $HTTP_SERVER_VARS['HTTP_HOST'],$HTTP_SERVER_VARS['PHP_SELF'], + <function>dirname</function>ã使ç¨ãããã¨ãå¯è½ã§ãã + <informalexample> + <programlisting> +<![CDATA[ +header("Location: http://".$HTTP_SERVER_VARS['HTTP_HOST'] + ."/".dirname($HTTP_SERVER_VARS['PHP_SELF']) + ."/".$relative_url); +]]> + </programlisting> + </informalexample> + </para> + </note> + <para> + 2çªç®ã®ç¹å¥ãªãããã¯ãæåå"<literal>HTTP/</literal>" + ããå§ã¾ãå ¨ã¦ã®ããã(大æåã»å°æåã¯åºå¥ããã¾ãã)ã§ãããã® + ãããã¯ãéä¿¡ããHTTPã¹ãã¼ã¿ã¹ã³ã¼ãã示ãããã«ä½¿ç¨ããã¾ãã + ä¾ãã°ãåå¨ããªããã¡ã¤ã«ã¸ã®ãªã¯ã¨ã¹ããå¦çããããã«ããPHPã¹ã¯ãª + ããã使ç¨ãããã(<literal>ErrorDocument</literal>ãã£ã¬ã¯ãã£ã + ã«ãã)Apacheãè¨å®ããå ´åããã®ã¹ã¯ãªãããæ£ããã¹ãã¼ã¿ã¹ã³ã¼ + ããè¿ãããã«ããå¿ è¦ãããã¾ãã <informalexample> <programlisting role="php"> -header ("HTTP/1.0 404 Not Found"); +<![CDATA[ +header("HTTP/1.0 404 Not Found"); +]]> </programlisting> </informalexample> - </para> - <para> - PHP ã¹ã¯ãªããã¯ãã°ãã°åçã« HTML ãçæãããããã¯ã©ã¤ã¢ã³ããã©ã¦ã¶ã - ãµã¼ãã¼ããã³ã¯ã©ã¤ã¢ã³ããã©ã¦ã¶ã®éã§ãããã·ããã£ãã·ã¥ãè¡ã£ãã - ããã¹ãã§ã¯ããã¾ãããå¤ãã®ãããã·ã¨ã¯ã©ã¤ã¢ã³ãã¯ã以ä¸ã®ã³ã¼ãã«ãã - å¼·å¶çã«ãã£ãã·ã¥ãç¡å¹ã«ã§ãã¾ãã + <note> + <para> + PHP 3ã§ã¯ããã®ã³ã¼ãã¯ãPHPãApacheã¢ã¸ã¥ã¼ã«çã¨ãã¦ã³ã³ã㤠+ ã«ããã¦ããå ´åã«ã®ã¿åä½ãã¾ãã<literal>Status</literal>ãã + ããç¨ãã¦åã广ãå¾ããã¨ãå¯è½ã§ãã + <informalexample> + <programlisting role="php"> +<![CDATA[ +header("Status: 404 Not Found"); +]]> + </programlisting> + </informalexample> + </para> + </note> + </para> + <para> + PHPã¹ã¯ãªããã¯ãã°ãã°åçã« HTML ãçæãããããã¯ã©ã¤ã¢ã³ãã + ã©ã¦ã¶ããµã¼ãã¼ããã³ã¯ã©ã¤ã¢ã³ããã©ã¦ã¶ã®éã§ãããã·ããã£ã + ã·ã¥ãè¡ã£ããããã¹ãã§ã¯ããã¾ãããå¤ãã®ãããã·ã¨ã¯ã©ã¤ã¢ã³ + ãã§ã¯ã以ä¸ã®ã³ã¼ãã«ããå¼·å¶çã«ãã£ãã·ã¥ãç¡å¹ã«ã§ãã¾ãã <informalexample> <programlisting role="php"> -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // éå»ã®æ¥ä» -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); - // 常ã«ä¿®æ£ããã¦ãã -header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 -header("Pragma: no-cache"); // HTTP/1.0 +<![CDATA[ +header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // æ¥ä»ãéå» +header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); + // 常ã«ä¿®æ£ããã¦ãã +header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1 +header("Cache-Control: post-check=0, pre-check=0", false); +header("Pragma: no-cache"); // HTTP/1.0 +]]> </programlisting> </informalexample> + <note> + <para> + ä¸è¨ã®ããããå ¨ã¦åºåããªãã£ãã¨ãã¦ããã¼ã¸ã®ãã£ãã·ã¥ãè¡ + ãããªãå ´åããããã¨ã«æ°ä»ãããããã¾ãããããã©ã«ãã®ãã© + ã¦ã¶ã®ãã£ãã·ã¥ã®åä½ãã¦ã¼ã¶ã夿´ã§ããææ®µã¯ããã¤ãããã¾ + ããä¸è¨ã®ããããéä¿¡ãããã¨ã«ãããã¹ã¯ãªããã®åºåããã£ã + ã·ã¥ãããå¯è½æ§ãããè¨å®ã䏿¸ãããã¹ãã§ãã + </para> + <para> + å ãã¦ã<function>session_cache_limiter</function>ããã³ + è¨å®<literal>session.cache_limiter</literal>ãã»ãã·ã§ã³ãä½¿ç¨ + ãããéã«ãã£ãã·ã¥é¢ä¿ã®ããããæ£ããèªåçã«çæããããã« + 使ç¨ã§ãã¾ãã + </para> + </note> </para> <para> è¦ãã¦ããã¦é ãããã®ã¯ã<function>header</function> 颿°ã¯ãé @@ -102,16 +162,59 @@ <para> <informalexample> <programlisting role="php"> -<?php require("user_logging.inc") ?> +<![CDATA[ +<?php require("user_logging.inc") ?> -<?php header ("Content-Type: audio/x-pn-realaudio"); ?> +<?php header ("Content-type: audio/x-pn-realaudio"); ?> // åä½ãã¾ãããä¸ã®ç©ºè¡ã«æ³¨æãã¦ä¸ããã +]]> </programlisting> </informalexample> + <note> + <para> + PHP 4ã§ã¯ããã®åé¡ã«å¯¾å¦ããããã«åºåã®ãããã¡ãªã³ã°ã使ç¨ã + ããã¨ãå¯è½ã§ãããã®å ´åããã©ã¦ã¶ã¸ã®åºåãéä¿¡ããã¾ã§ãµã¼ + ãã«å ¨ã¦ãããã¡ãªã³ã°ããããªã¼ãã¼ããããããã¾ããåºåãã + ãã¡ãªã³ã°ã¯ã<function>ob_start</function>㨠+ <function>ob_end_flush</function>ãã¹ã¯ãªããã§ã³ã¼ã«ããã + <filename>php.ini</filename>ã¾ãã¯ãµã¼ãè¨å®ãã¡ã¤ã«ã®è¨å®ã㣠+ ã¬ã¯ãã£ã<literal>output_buffering</literal>ãè¨å®ãããã¨ã«ã + ãè¡ããã¨ãå¯è½ã§ãã + </para> + </note> </para> <para> - <function>headers_sent</function>ãåç §ä¸ããã + PDFãã¡ã¤ã«ãçæããã¨ãã£ãããã«éä¿¡ãããã¼ã¿ãä¿åãããã©ã + ãã¦ã¼ã¶ã«ããã³ããã表示ãããå ´åãæ¨å¥¨ããããã¡ã¤ã«åãæå® + ãã¦ãã©ã¦ã¶ã«ä¿åãã¤ã¢ãã°ã表示ããã<ulink + url="&url.rfc2183;">Content-Disposition</ulink>ãããã使ç¨å¯è½ã§ + ãã + <informalexample> + <programlisting role="php"> +<![CDATA[ +<?php +header("Content-type: application/pdf"); +header("Content-Disposition: attachment; filename=downloaded.pdf"); + +/* ... PDFãã¡ã¤ã«ãåºå ... */ +]]> + </programlisting> + </informalexample> + <note> + <para> + Microsoft Internet Explorer 4.01ã«ã¯ãããåä½ããªãã¨ãããã° + ãããã¾ãããã®è§£æ±ºçã¯ããã¾ãããMicrosoft Internet Explorer + 5.5ã«ãããã妨ãããã°ãããã¾ããããã¯ããµã¼ãã¹ããã¯2以é + ã¨ãããã¨ã§ä¿®æ´å¯è½ã§ãã + </para> + </note> + </para> + <para> + <function>headers_sent</function>, + <function>setcookie</function>åã³ + <link linkend="features.http-auth">HTTPèªè¨¼</link>ã®ç¯ãåç §ä¸ã + ãã </para> </refsect1> </refentry> @@ -126,7 +229,7 @@ <funcsynopsis> <funcprototype> <funcdef>boolean <function>headers_sent</function></funcdef> - <paramdef><parameter>void</parameter></paramdef> + <void/> </funcprototype> </funcsynopsis> <para> @@ -231,9 +334,11 @@ <example> <title><function>setcookie</function>ã«ããéä¿¡ã®ä¾</title> <programlisting role="php"> +<![CDATA[ setcookie ("TestCookie", "Test Value"); setcookie ("TestCookie", $value,time()+3600); /* 1æéã§æéåã */ setcookie ("TestCookie", $value,time()+3600, "/~rasmus/", ".utoronto.ca", 1); +]]> </programlisting> </example> </para> @@ -242,10 +347,12 @@ <example> <title><function>setcookie</function>ã«ããåé¤ã®ä¾</title> <programlisting role="php"> +<![CDATA[ setcookie ("TestCookie"); // æå¹æéã1æéåã«è¨å®ãã setcookie ("TestCookie", "", time() - 3600); setcookie ("TestCookie", "", time() - 3600, "/~rasmus/", ".utoronto.ca", 1); +]]> </programlisting> </example> ã¯ããã¼ãåé¤ããå ´åã«ã¯ããã©ã¦ã¶ã®å餿©æ§ãèµ·åããããã«å¿ @@ -259,8 +366,10 @@ ã®ä¾ã®ãã¡ã®ä¸ã¤ã使ç¨ãã¦ä¸ããã <informalexample> <programlisting role="php"> +<![CDATA[ echo $TestCookie; echo $HTTP_COOKIE_VARS["TestCookie"]; +]]> </programlisting> </informalexample> </para> @@ -271,14 +380,16 @@ ã«ç½®ãããããã¾ãã <informalexample> <programlisting role="php"> +<![CDATA[ setcookie ("cookie[three]", "cookiethree"); setcookie ("cookie[two]", "cookietwo"); setcookie ("cookie[one]", "cookieone"); if (isset ($cookie)) { while (list ($name, $value) = each ($cookie)) { - echo "$name == $value<br>\n"; + echo "$name == $value<br>\n"; } } +]]> </programlisting> </informalexample> </para> Index: phpdoc/ja/functions/hw.xml diff -u phpdoc/ja/functions/hw.xml:1.12 phpdoc/ja/functions/hw.xml:1.13 --- phpdoc/ja/functions/hw.xml:1.12 Wed Dec 12 15:53:00 2001 +++ phpdoc/ja/functions/hw.xml Sun Jan 20 00:07:01 2002 @@ -1,4 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.13 $ --> <reference id="ref.hyperwave"> <title>Hyperwave 颿°</title> <titleabbrev>Hyperwave</titleabbrev> @@ -307,7 +308,9 @@ ã«ç°¡åã§ãã <informalexample> <programlisting role="apache-conf"> +<![CDATA[ RewriteRule ^/(.*) /usr/local/apache/htdocs/HyperWave/$1 [L] +]]> </programlisting> </informalexample> ãã®ç¶æ ã§ãå ¨ã¦ã® URL 㯠Hyperwave ãµã¼ãã¼ã®ãªãã¸ã§ã¯ãã« @@ -318,7 +321,9 @@ <informalexample> <programlisting role="apache-conf"> +<![CDATA[ RewriteRule ^/hw/(.*) /usr/local/apache/htdocs/hw/$1 [L] +]]> </programlisting> </informalexample> @@ -336,7 +341,9 @@ <informalexample> <programlisting role="apache-conf"> +<![CDATA[ RewriteEngine on +]]> </programlisting> </informalexample> @@ -473,10 +480,11 @@ </funcprototype> </funcsynopsis> <para> - ãªãã¸ã§ã¯ãã¬ã³ã¼ãã®é åãè¿ãã¾ãã - åãªãã¸ã§ã¯ãã¬ã³ã¼ãã¯ãID <parameter>objectID</parameter> - ãæããã³ã¬ã¯ã·ã§ã³ã®åã«å±ãã¦ãã¾ãã - é åã¯ãããã¥ã¡ã³ãããã³ã³ã¬ã¯ã·ã§ã³ã®å ¨ã¦ã®åãæãã¦ãã¾ãã</para> + ãªãã¸ã§ã¯ãã¬ã³ã¼ãã®é åãè¿ãã¾ããåãªãã¸ã§ã¯ãã¬ã³ã¼ãã¯ãID + <parameter>objectID</parameter>ãæããã³ã¬ã¯ã·ã§ã³ã®åã«å±ãã¦ã + ã¾ããé åã¯ãããã¥ã¡ã³ãããã³ã³ã¬ã¯ã·ã§ã³ã®å ¨ã¦ã®åãæãã¦ãã¾ + ãã + </para> </refsect1> </refentry> @@ -494,9 +502,10 @@ </funcprototype> </funcsynopsis> <para> - connection ãæå¹ãªæ¥ç¶ã¤ã³ããã¯ã¹ã§ãªãå ´åã« &false;ããã以å¤ã®å ´åã« - &true; ãè¿ãã¾ãã - æå®ããæ¥ç¶ã¤ã³ããã¯ã¹ã«é¢ã㦠Hyperwave ãµã¼ãã¼ã¨ã®æ¥ç¶ãéãã¾ãã</para> + connectionãæå¹ãªæ¥ç¶ã¤ã³ããã¯ã¹ã§ãªãå ´åã«&false;ããã以å¤ã® + å ´åã«&true;ãè¿ãã¾ããæå®ããæ¥ç¶ã¤ã³ããã¯ã¹ã«é¢ãã¦Hyperwave + ãµã¼ãã¼ã¨ã®æ¥ç¶ãéãã¾ãã + </para> </refsect1> </refentry> @@ -517,18 +526,20 @@ </funcprototype> </funcsynopsis> <para> - Hyperwave ãµã¼ãã¼ã¸ã®æ¥ç¶ããªã¼ãã³ããæåããå ´åã«æ¥ç¶ã¤ã³ããã¯ã¹ã - æ¥ç¶ã§ããªãã£ãå ´åã« &false; ãè¿ãã¾ãã - å弿°ã¯ããã¼ãçªå·ãé¤ãå¼ç¨ç¬¦ä»ã®æååã§ããå¿ è¦ãããã¾ãã - <parameter>username</parameter> ããã³ <parameter>password</parameter> - 弿°ã¯ãªãã·ã§ã³ã§ãããçç¥ãããã¨ãã§ãã¾ãã - ãã®å ´åããµã¼ãã¼ã«ããã¦ã¼ã¶ã¼èå¥ã¯è¡ããã¾ããã - ããã¯ãå¿åã¦ã¼ã¶ã¼ã¨ãã¦èå¥ããããã¨ã«ä¼¼ã¦ãã¾ãã - ãã®é¢æ°ã¯ãä»ã® Hyperwave 颿°ã§å¿ è¦ãªæ¥ç¶ã¤ã³ããã¯ã¹ãè¿ãã¾ãã - è¤æ°ã®æ¥ç¶ãåæã«ãªã¼ãã³ãããã¨ãå¯è½ã§ãããã¹ã¯ã¼ãã¯æå·åãããªãã㨠- ãè¦ãã¦ããã¦ä¸ããã</para> + Hyperwave ãµã¼ãã¼ã¸ã®æ¥ç¶ããªã¼ãã³ããæåããå ´åã«æ¥ç¶ã¤ã³ãã + ã¯ã¹ãæ¥ç¶ã§ããªãã£ãå ´åã«&false;ãè¿ãã¾ããå弿°ã¯ããã¼ãçª + å·ãé¤ãå¼ç¨ç¬¦ä»ã®æååã§ããå¿ è¦ãããã¾ãã + <parameter>username</parameter>ããã³ + <parameter>password</parameter>弿°ã¯ãªãã·ã§ã³ã§ãããçç¥ããã + ã¨ãã§ãã¾ãããã®å ´åããµã¼ãã¼ã«ããã¦ã¼ã¶ã¼èå¥ã¯è¡ããã¾ããã + ããã¯ãå¿åã¦ã¼ã¶ã¼ã¨ãã¦èå¥ããããã¨ã«ä¼¼ã¦ãã¾ãããã®é¢æ°ã¯ã + ä»ã® Hyperwave 颿°ã§å¿ è¦ãªæ¥ç¶ã¤ã³ããã¯ã¹ãè¿ãã¾ããè¤æ°ã®æ¥ç¶ + ãåæã«ãªã¼ãã³ãããã¨ãå¯è½ã§ãããã¹ã¯ã¼ãã¯æå·åãããªãã㨠+ ãè¦ãã¦ããã¦ä¸ããã + </para> <para> - <function>hw_pConnect</function> ãåç §ä¸ããã</para> + <function>hw_pConnect</function> ãåç §ä¸ããã + </para> </refsect1> </refentry> @@ -972,20 +983,18 @@ </funcprototype> </funcsynopsis> <para> - ãªã¢ã¼ãããã¥ã¡ã³ããè¿ãã¾ããHyperwave 表è¨ã®ãªã¢ã¼ãããã¥ã¡ã³ãã¯ã - å¤é¨ã½ã¼ã¹ããåå¾ãããããã¥ã¡ã³ãã§ãã - ä¸è¬çãªãªã¢ã¼ãããã¥ã¡ã³ãã¯ãä¾ãã°å¤é¨Webãã¼ã¸ã¾ãã¯ãã¼ã¿ãã¼ã¹ - ã®ã¯ã¨ãªã¼ã§ãã - å¤é¨ã½ã¼ã¹ãã¢ã¯ã»ã¹å¯è½ã¨ããããã«ãHyperwave ã§ã¯ CGI ã«ä¼¼ã HGI - (Hyperwave Gateway Interface)ãå°å ¥ãã¦ãã¾ãã - ç¾å¨ã ftp, http ãµã¼ãã¼ã¨ããã¤ãã®ãã¼ã¿ãã¼ã¹ã®ã¿ã HGI ã«ãã - ã¢ã¯ã»ã¹å¯è½ã§ãã - <function>hw_GetRemote</function> ãã³ã¼ã«ãããã¨ã«ããå¤é¨ã½ã¼ã¹ããã® - ããã¥ã¡ã³ããè¿ããã¾ãã - ãã®é¢æ°ã使ç¨ãããå ´åãHGI ãçç¥ãã¦ããå¿ è¦ãããã¾ãã - å¤é¨ã½ã¼ã¹ãã¢ã¯ã»ã¹ããããã« Hyperwave ã®ãããã« PHP ã使ç¨ãããã¨ã - èæ ®ããå¿ è¦ãããã¾ããHyperwave ã²ã¼ãã¦ã¨ã¤ã«ãã¼ã¿ãã¼ã¹ã®ãµãã¼ãã - ä»å ããã®ã¯ãPHPã«ããã¦åããã¨ãè¡ããããããå°é£ã§ãã + ãªã¢ã¼ãããã¥ã¡ã³ããè¿ãã¾ããHyperwave 表è¨ã®ãªã¢ã¼ãããã¥ã¡ + ã³ãã¯ãå¤é¨ã½ã¼ã¹ããåå¾ãããããã¥ã¡ã³ãã§ããä¸è¬çãªãªã¢ã¼ + ãããã¥ã¡ã³ãã¯ãä¾ãã°å¤é¨Webãã¼ã¸ã¾ãã¯ãã¼ã¿ãã¼ã¹ã®ã¯ã¨ãªã¼ + ã§ããå¤é¨ã½ã¼ã¹ãã¢ã¯ã»ã¹å¯è½ã¨ããããã«ãHyperwaveã§ã¯CGIã«ä¼¼ + ãHGI(Hyperwave Gateway Interface)ãå°å ¥ãã¦ãã¾ããç¾å¨ã + ftp,httpãµã¼ãã¼ã¨ããã¤ãã®ãã¼ã¿ãã¼ã¹ã®ã¿ãHGIã«ããã¢ã¯ã»ã¹å¯ + è½ã§ãã<function>hw_GetRemote</function>ãã³ã¼ã«ãããã¨ã«ããå¤ + é¨ã½ã¼ã¹ããã®ããã¥ã¡ã³ããè¿ããã¾ãããã®é¢æ°ã使ç¨ãããå ´åã + HGIãçç¥ãã¦ããå¿ è¦ãããã¾ããå¤é¨ã½ã¼ã¹ãã¢ã¯ã»ã¹ããããã« + Hyperwaveã®ãããã«PHPã使ç¨ãããã¨ãèæ ®ããå¿ è¦ãããã¾ãã + Hyperwaveã²ã¼ãã¦ã¨ã¤ã«ãã¼ã¿ãã¼ã¹ã®ãµãã¼ããä»å ããã®ã¯ãPHP + ã«ããã¦åããã¨ãè¡ããããããå°é£ã§ãã </para> <para> <function>hw_GetRemoteChildren</function> ãåç §ä¸ããã @@ -1781,11 +1790,13 @@ <example> <title>屿§ãä¿®æ£ãã</title> <programlisting role="php"> +<![CDATA[ // $connect ã¯ãHyperwave ãµã¼ãã¼ã¸ã®æ¢åã®æ¥ç¶ã§ãã // $objid ã¯ãä¿®æ£ãããªãã¸ã§ã¯ãã®IDã§ãã $remarr = array("Name" => "books"); $addarr = array("Name" => "articles"); $hw_modifyobject($connect, $objid, $remarr, $addarr); +]]> </programlisting> </example> åå=å¤ã®çµãåé¤/追å ããããã«ã¯ããªãã¸ã§ã¯ãã¬ã³ã¼ããremove/add @@ -1795,11 +1806,13 @@ <example> <title>å®å ¨ã«æ°è¦ã®å±æ§ã追å ãã</title> <programlisting role="php"> +<![CDATA[ // $connect ã¯ãHyperwave ãµã¼ãã¼ã¸ã®æ¢åã®æ¥ç¶ã§ãã // $objid ã¯ãä¿®æ£ãããªãã¸ã§ã¯ãã®IDã§ãã $remarr = array("Name" => 0); $addarr = array("Name" => "articles"); $hw_modifyobject($connect, $objid, $remarr, $addarr); +]]> </programlisting> </example> </para> @@ -1816,18 +1829,22 @@ <example> <title>Title 屿§ãä¿®æ£ãã</title> <programlisting role="php"> +<![CDATA[ $remarr = array("Title" => "en:Books"); $addarr = array("Title" => "en:Articles"); $hw_modifyobject($connect, $objid, $remarr, $addarr); +]]> </programlisting> </example> ã¾ã㯠<example> <title>Title 屿§ãä¿®æ£ãã</title> <programlisting role="php"> +<![CDATA[ $remarr = array("Title" => array("en" => "Books")); $addarr = array("Title" => array("en" => "Articles", "ge"=>"Artikel")); $hw_modifyobject($connect, $objid, $remarr, $addarr); +]]> </programlisting> </example> ãã®ä¾ã§ã¯ãè±èªã®ã¿ã¤ãã« 'Books' ãåé¤ãã @@ -1836,9 +1853,11 @@ <example> <title>屿§ãåé¤ãã</title> <programlisting role="php"> +<![CDATA[ $remarr = array("Title" => ""); $addarr = array("Title" => "en:Articles"); $hw_modifyobject($connect, $objid, $remarr, $addarr); +]]> </programlisting> </example> <note> @@ -2132,6 +2151,165 @@ </funcsynopsis> <para> æ¥ç¶ãè¡ã£ã¦ããã¦ã¼ã¶ã¼åãè¿ãã¾ãã + </para> + </refsect1> + </refentry> + + <refentry id='function.hw-stat'> + <refnamediv> + <refname>hw_stat</refname> + <refpurpose> + ã¹ãã¼ã¿ã¹æååãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>hw_stat</function></funcdef> + <paramdef>int <parameter>link</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.hw-setlinkroot'> + <refnamediv> + <refname>hw_setlinkroot</refname> + <refpurpose> + è¨ç®ããããªã³ã¯ã®IDãè¨å®ãã + Set the id to which links are calculated + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>hw_setlinkroot</function></funcdef> + <paramdef>int <parameter>link</parameter></paramdef> + <paramdef>int <parameter>rootid</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.hw-connection-info'> + <refnamediv> + <refname>hw_connection_info</refname> + <refpurpose> + Hyperwaveãµã¼ãã¸ã®æ¥ç¶ã«é¢ããæ å ±ãåºåãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>hw_connection_info</function></funcdef> + <paramdef>int <parameter>link</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.hw-dummy'> + <refnamediv> + <refname>hw_dummy</refname> + <refpurpose> + Hyperwaveããã¼é¢æ° + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>hw_dummy</function></funcdef> + <paramdef>int <parameter>link</parameter></paramdef> + <paramdef>int <parameter>id</parameter></paramdef> + <paramdef>int <parameter>msgid</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.hw-insertanchors'> + <refnamediv> + <refname>hw_insertanchors</refname> + <refpurpose> + textã«ã¢ã³ã«ã¼ã®ã¿ãæ¿å ¥ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>hw_insertanchors</function></funcdef> + <paramdef>int <parameter>hwdoc</parameter></paramdef> + <paramdef>array <parameter>anchorecs</parameter></paramdef> + <paramdef>array <parameter>dest</parameter></paramdef> + <paramdef>array <parameter><optional>urlprefixes</optional></parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.hw-getrellink'> + <refnamediv> + <refname>hw_getrellink</refname> + <refpurpose> + rootidã«ç¸å¯¾çãªsourceããdestã¸ã®ãªã³ã¯ãå¾ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>hw_getrellink</function></funcdef> + <paramdef>int <parameter>link</parameter></paramdef> + <paramdef>int <parameter>rootid</parameter></paramdef> + <paramdef>int <parameter>sourceid</parameter></paramdef> + <paramdef>int <parameter>destid</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.hw-changeobject'> + <refnamediv> + <refname>hw_changeobject</refname> + <refpurpose> + ãªãã¸ã§ã¯ãã®å±æ§ã夿´ãã(å¤ã颿°) + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>hw_changeobject</function></funcdef> + <paramdef>int <parameter>link</parameter></paramdef> + <paramdef>int <parameter>objid</parameter></paramdef> + <paramdef>array <parameter>attributes</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; </para> </refsect1> </refentry> Index: phpdoc/ja/functions/ibase.xml diff -u phpdoc/ja/functions/ibase.xml:1.16 phpdoc/ja/functions/ibase.xml:1.17 --- phpdoc/ja/functions/ibase.xml:1.16 Wed Dec 12 15:53:02 2001 +++ phpdoc/ja/functions/ibase.xml Sun Jan 20 00:07:01 2002 @@ -1,4 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.17 $ --> <reference id="ref.ibase"> <title>InterBase颿°</title> <titleabbrev>InterBase</titleabbrev> @@ -14,6 +15,18 @@ <para> InterBase 6ã®å®å ¨ãªãµãã¼ããPHP 4.0ã§è¿½å ããã¾ããã </para> + <para> + ãã®ãã¼ã¿ãã¼ã¹ã¯ãã·ã³ã°ã«ã¯ãªã¼ã(')æåãã¨ã¹ã±ã¼ãã«ä½¿ç¨ãã¾ + ãããã®åä½ã¯Sybaseãã¼ã¿ãã¼ã¹ã«ä¼¼ã¦ããã以ä¸ã®ãã£ã¬ã¯ãã£ã + ã<filename>php.ini</filename>ã«è¿½å ãã¦ä¸ããã + <informalexample> + <programlisting> +<![CDATA[ +magic_quotes_sybase = On +]]> + </programlisting> + </informalexample> + </para> </note> </partintro> @@ -63,23 +76,22 @@ </funcprototype> </funcsynopsis> <para> - InterBaseãµã¼ãã¼ã¸ã®æ¥ç¶ã確ç«ãã¾ãã - 弿°<parameter>database</parameter>ã¯æ¥ç¶ãããµã¼ãã¼ä¸ã® - ãã¼ã¿ãã¼ã¹ãã¡ã¤ã«ã¸ã®æ£ãããã¹ã§ããå¿ è¦ãããã¾ãã - ãã¼ã«ã«ãªãµã¼ãã¼ã¸ã®æ¥ç¶ã§ãªãå ´åã使ç¨ããæ¥ç¶ãããã³ã«ã«å¿ã㦠- ãã®å¼æ°ã®åã« - 'hostname:' (TCP/IP)ã'//hostname/' (NetBEUI)ã'hostname@' (IPX/SPX) - ã®ã©ãããã¤ããå¿ è¦ãããã¾ãã - <parameter>username</parameter>ããã³<parameter>password</parameter> - ã¯PHPè¨å®ãã£ã¬ã¯ãã£ãibase.default_user - ããã³ibase.default_passwordã§æå®ãããã¨ãå¯è½ã§ãã - <parameter>charset</parameter>ã¯ãã¼ã¿ãã¼ã¹ã«é¢ããããã©ã«ãã® - æåã»ããã§ãã <parameter>buffers</parameter>㯠- ãµã¼ãã¼å´ã®ãã£ãã·ã¥ã«ç¢ºä¿ããããã¼ã¿ãã¼ã¹ãããã¡ã®æ°ã§ãã - 0ã¾ãã¯çç¥ãããå ´åããµã¼ãã¼ã¯ããã©ã«ãå¤ãç¨ãã¾ãã - <parameter>dialect</parameter>ã¯ãæ¥ç¶æã«å®è¡ãããå ¨ã¦ã®å½ä»¤ã«é¢ãã - SQLæ¹è¨ã®ããã©ã«ãå¤ã鏿ããããã©ã«ãã§ã¯ã¯ã©ã¤ã¢ã³ãã©ã¤ãã©ãªã§ãµãã¼ã - ãããæ¹è¨ã®ãã¡ãæé«ä½ã®ãã®ã«ãªãã¾ãã + InterBaseãµã¼ãã¼ã¸ã®æ¥ç¶ã確ç«ãã¾ãã弿° + <parameter>database</parameter>ã¯æ¥ç¶ãããµã¼ãã¼ä¸ã®ãã¼ã¿ãã¼ã¹ + ãã¡ã¤ã«ã¸ã®æ£ãããã¹ã§ããå¿ è¦ãããã¾ãããã¼ã«ã«ãªãµã¼ãã¼ã¸ + ã®æ¥ç¶ã§ãªãå ´åã使ç¨ããæ¥ç¶ãããã³ã«ã«å¿ãã¦ãã®å¼æ°ã®åã«' + hostname:' (TCP/IP)ã'//hostname/' (NetBEUI)ã'hostname@' + (IPX/SPX)ã®ã©ãããã¤ããå¿ è¦ãããã¾ãã + <parameter>username</parameter>ããã³ + <parameter>password</parameter>ã¯PHPè¨å®ãã£ã¬ã¯ãã£ã + ibase.default_userããã³ibase.default_passwordã§æå®ãããã¨ãå¯ + è½ã§ãã<parameter>charset</parameter>ã¯ãã¼ã¿ãã¼ã¹ã«é¢ããããã© + ã«ãã®æåã»ããã§ãã <parameter>buffers</parameter>ã¯ãµã¼ãã¼å´ + ã®ãã£ãã·ã¥ã«ç¢ºä¿ããããã¼ã¿ãã¼ã¹ãããã¡ã®æ°ã§ãã0ã¾ãã¯çç¥ + ãããå ´åããµã¼ãã¼ã¯ããã©ã«ãå¤ãç¨ãã¾ãã + <parameter>dialect</parameter>ã¯ãæ¥ç¶æã«å®è¡ãããå ¨ã¦ã®å½ä»¤ã« + é¢ããSQLæ¹è¨ã®ããã©ã«ãå¤ã鏿ããããã©ã«ãã§ã¯ã¯ã©ã¤ã¢ã³ãã© + ã¤ãã©ãªã§ãµãã¼ããããæ¹è¨ã®ãã¡ãæé«ä½ã®ãã®ã«ãªãã¾ãã </para> <para> åã弿°ã§<function>ibase_connect</function>ãå度ã³ã¼ã«ãããå ´åã @@ -90,32 +102,35 @@ <example> <title><function>ibase_connect</function>ã®ä¾</title> <programlisting role="php"> -<?php - $dbh = ibase_connect ($host, $username, $password); - $stmt = 'SELECT * FROM tblname'; - $sth = ibase_query ($dbh, $stmt); - while ($row = ibase_fetch_object ($sth)) { - print $row->email . "\n"; - } - ibase_close ($dbh); +<![CDATA[ +<?php + $dbh = ibase_connect($host, $username, $password); + $stmt = 'SELECT * FROM tblname'; + $sth = ibase_query($dbh, $stmt); + while ($row = ibase_fetch_object($sth)) { + echo $row->email, "\n"; + } + ibase_free_result($sth); + ibase_close($dbh); ?> +]]> </programlisting> </example> </para> <note> <para> - <parameter>buffers</parameter>ã¯PHP 4-RC2ã§è¿½å ããã¾ããã + <parameter>buffers</parameter>ã¯ãPHP 4.0RC2ã§è¿½å ããã¾ããã </para> </note> <note> <para> - <parameter>dialect</parameter>ã¯PHP 4-RC2ã§è¿½å ããã¾ããã + <parameter>dialect</parameter>ã¯PHP 4.0RC2ã§è¿½å ããã¾ããã ãã®ãªãã·ã§ã³ã¯ãInterBase 6以éã§ã®ã¿ä½¿ç¨å¯è½ã§ãã </para> </note> <note> <para> - <parameter>role</parameter>ã¯PHP 4-RC2ã§è¿½å ããã¾ããã + <parameter>role</parameter>ã¯PHP 4.0RC2ã§è¿½å ããã¾ããã ãã®æ©è½ã¯ãInterBase 5以éã§ã®ã¿ä½¿ç¨å¯è½ã§ãã </para> </note> @@ -263,20 +278,38 @@ </funcprototype> </funcsynopsis> <simpara> - InterBaseãã¼ã¿ãã¼ã¹ä¸ã§ã¯ã¨ãªã¼ãå®è¡ããçµæIDãè¿ãã¾ãã - ãã®IDã¯ã<function>ibase_fetch_row</function>, + InterBaseãã¼ã¿ãã¼ã¹ä¸ã§ã¯ã¨ãªã¼ãå®è¡ãã¾ããã¯ã¨ãªãæåããªã + å ´åã&false;ãè¿ãã¾ããæåããå ´åã(SELECTã¯ã¨ãªã®ãããª)çµæ + ã®è¡ãããå ´åãçµæIDãè¿ãã¾ããã¯ã¨ãªãæåããçµæããªãå ´åã + &true;ãè¿ãã¾ããã¯ã¨ãªã失æããå ´åã &false;ãè¿ããã¾ãã + </simpara> + <para> + <function>ibase_errmsg</function>, + <function>ibase_fetch_row</function>, <function>ibase_fetch_object</function>, - <function>ibase_free_result</function>, - <function>ibase_free_query</function>ã§ä½¿ç¨ããã¾ãã + <function>ibase_free_result</function>ãåç §ä¸ããã + </para> + </refsect1> + </refentry> + + <refentry id="function.ibase-errmsg"> + <refnamediv> + <refname>ibase_errmsg</refname> + <refpurpose> + ã¨ã©ã¼ã¡ãã»ã¼ã¸ãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ibase_errmsg</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <simpara> + ã¨ã©ã¼ã¡ãã»ã¼ã¸ãæããæååãè¿ãã¾ãã </simpara> - <note> - <para> - ãã®é¢æ°ã¯ããã©ã¡ã¼ã¿ã¸ã®å¤æ°ã®ãã¤ã³ãããµãã¼ããã¦ãã¾ããã - ãã®æ©è½ã使ç¨ããæå³ã¯ãã¾ãããã¾ããã - å®ç¨ä¾ã«ã¤ãã¦ã¯ã<function>ibase_prepare</function>ããã³ - <function>ibase_execute</function>ãåç §ä¸ããã - </para> - </note> </refsect1> </refentry> @@ -323,7 +356,8 @@ æ¬ä¼¼ãªãã¸ã§ã¯ãã¨ãã¦1è¡åã®çµæãåå¾ãã¾ãã <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<php $dbh = ibase_connect ($host, $username, $password); $stmt = 'SELECT * FROM tblname'; $sth = ibase_query ($dbh, $stmt); @@ -332,6 +366,7 @@ } ibase_close ($dbh); ?> +]]> </programlisting> </informalexample> </para> @@ -363,11 +398,10 @@ ã¾ãã¾ãã <informalexample> <programlisting role="php"> -// helio@helio.com.br 08-Dec-2000 02:53 - -$rs=ibase_query("Select * from something"); -$coln = ibase_num_fields($rs); -for ($i=0 ; $i < $coln ; $i++) { +<![CDATA[ +$rs=ibase_query("SELECT * FROM tablename"); +$coln = ibase_num_fields($rs); +for ($i=0; $i < $coln; $i++) { $col_info = ibase_field_info($rs, $i); echo "name: ".$col_info['name']."\n"; echo "alias: ".$col_info['alias']."\n"; @@ -375,12 +409,36 @@ echo "length: ".$col_info['length']."\n"; echo "type: ".$col_info['type']."\n"; } +]]> </programlisting> </informalexample> </para> </refsect1> </refentry> + <refentry id="function.ibase-free-query"> + <refnamediv> + <refname>ibase_free_query</refname> + <refpurpose> + æºåãããã¯ã¨ãªã«ãã確ä¿ãããã¡ã¢ãªãè§£æ¾ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ibase_free_query</function></funcdef> + <paramdef>int + <parameter>query</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + <function>ibase_prepare</function>ã«ããæºåãããã¯ã¨ãªãè§£æ¾ãã¾ãã + </simpara> + </refsect1> + </refentry> + <refentry id="function.ibase-free-result"> <refnamediv> <refname>ibase_free_result</refname> @@ -424,8 +482,8 @@ </funcprototype> </funcsynopsis> <simpara> - 対å¿ãããã©ã¡ã¼ã¿ã®ãã¤ã³ãã - (<function>ibase_execute</function>ã«ãã)å®è¡ãããããã®ã¯ã¨ãªãæºåãã¾ãã + 対å¿ãããã©ã¡ã¼ã¿ã®ãã¤ã³ãã(<function>ibase_execute</function> + ã«ãã)å®è¡ãããããã®ã¯ã¨ãªãæºåãã¾ãã </simpara> </refsect1> </refentry> @@ -457,7 +515,8 @@ <function>ibase_query</function>ã使ç¨ããããããã£ã¨å¹ççã§ãã <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php $updates = array( 1 => 'Eric', 5 => 'Filip', @@ -470,6 +529,7 @@ ibase_execute($query, $bar, $baz); } ?> +]]> </programlisting> </informalexample> </para> @@ -556,29 +616,6 @@ </refsect1> </refentry> - <refentry id="function.ibase-free-query"> - <refnamediv> - <refname>ibase_free_query</refname> - <refpurpose> - æºåãããã¯ã¨ãªã«ãã確ä¿ãããã¡ã¢ãªãè§£æ¾ãã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>ibase_free_query</function></funcdef> - <paramdef>int - <parameter>query</parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <simpara> - <function>ibase_prepare</function>ã«ããæºåãããã¯ã¨ãªãè§£æ¾ãã¾ãã - </simpara> - </refsect1> - </refentry> - <refentry id="function.ibase-timefmt"> <refnamediv> <refname>ibase_timefmt</refname> @@ -602,25 +639,29 @@ </funcprototype> </funcsynopsis> <para> - ã¯ã¨ãªã¼ããè¿ãããtimestampãdata,timeåã«ã©ã ã®ãã©ã¼ããããè¨å®ãã¾ãã - å é¨çã«ãããã®ã«ã©ã ã¯Cè¨èªã®é¢æ°strftime()ã«ãããã©ã¼ãããããã¾ãããã®ããã - æååã®ãã©ã¼ãããã«ã¤ãã¦ã¯ãã®Cè¨èªã®é¢æ°ããã¥ã¡ã³ããåç §ä¸ããã - <parameter>columntype</parameter>ã«ã¯å®æ°IBASE_TIMESTAMPãIBASE_DATEãIBASE_TIME - ã®ã©ãããæå®ãã¾ããçç¥ããå ´åã«ã¯ãä¸ä½äºææ§ãä¿ã¤ãã - IBASE_TIMESTAMPãããã©ã«ãå¤ã¨ãªãã¾ãã + ã¯ã¨ãªã¼ããè¿ãããtimestampãdata,timeåã«ã©ã ã®ãã©ã¼ãããã + è¨å®ãã¾ããå é¨çã«ãããã®ã«ã©ã ã¯Cè¨èªã®é¢æ°strftime()ã«ãã + ãã©ã¼ãããããã¾ãããã®ãããæååã®ãã©ã¼ãããã«ã¤ãã¦ã¯ã + ã®Cè¨èªã®é¢æ°ããã¥ã¡ã³ããåç §ä¸ããã + <parameter>columntype</parameter>ã«ã¯å®æ°IBASE_TIMESTAMPã + IBASE_DATEãIBASE_TIMEã®ã©ãããæå®ãã¾ããçç¥ããå ´åã«ã¯ãä¸ + ä½äºææ§ãä¿ã¤ããIBASE_TIMESTAMPãããã©ã«ãå¤ã¨ãªãã¾ãã <informalexample> <programlisting role="php"> -<?php - // InterBase 6 TIMEåã«ã©ã ã - // '05 hours 37 minutes'ã®å½¢å¼ã§è¿ããã¾ã - ibase_timefmt("%H hours %M minutes", IBASE_TIME); +<![CDATA[ +<?php +// InterBase 6 TIMEåã«ã©ã ã +// '05 hours 37 minutes'ã®å½¢å¼ã§è¿ããã¾ã +ibase_timefmt("%H hours %M minutes", IBASE_TIME); ?> +]]> </programlisting> </informalexample> </para> <para> - PHPè¨å®ãã£ã¬ã¯ãã£ãibase.timestampformatãibase.dateformatãibase.timeformat - ã«ãããããã®ãã©ã¼ãããã®ããã©ã«ãå¤ãè¨å®ãããã¨ãå¯è½ã§ãã + PHPè¨å®ãã£ã¬ã¯ãã£ãibase.timestampformatãibase.dateformatã + ibase.timeformatã«ãããããã®ãã©ã¼ãããã®ããã©ã«ãå¤ãè¨å®ã + ããã¨ãå¯è½ã§ãã </para> <note> <para> @@ -630,11 +671,11 @@ </note> <note> <para> - PHP 4.0ã§ã¯ãPHPè¨å®ãã£ã¬ã¯ãã£ãibase.timeformatãibase.timestampformatã« - ååã夿´ããããã£ã¬ã¯ãã£ãibase.dateformatã¨ibase.timeformatã - 追å ãããéå»ã®ãã¼ã¸ã§ã³ã¨ã®äº?æ§ããªã夿´ãè¡ããã¦ãã¾ãã - ãã®å¤æ´ã¯ããã£ã¬ã¯ãã£ãã®ååãããèªä½ã®æ©è½ã«ããä¸è´ããããã« - è¡ããããã®ã§ãã + PHP 4.0ã§ã¯ãPHPè¨å®ãã£ã¬ã¯ãã£ãibase.timeformatã + ibase.timestampformatã«ååã夿´ããããã£ã¬ã¯ãã£ã + ibase.dateformatã¨ibase.timeformatã追å ãããéå»ã®ãã¼ã¸ã§ã³ã¨ + ã®äºææ§ããªã夿´ãè¡ããã¦ãã¾ãããã®å¤æ´ã¯ããã£ã¬ã¯ãã£ãã® + ååãããèªä½ã®æ©è½ã«ããä¸è´ããããã«è¡ããããã®ã§ãã </para> </note> </refsect1> @@ -659,7 +700,8 @@ çµæã»ããã«ããããã£ã¼ã«ãæ°ãæ´æ°ã¨ãã¦è¿ãã¾ãã <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php $dbh = ibase_connect ($host, $username, $password); $stmt = 'SELECT * FROM tblname'; $sth = ibase_query ($dbh, $stmt); @@ -674,38 +716,209 @@ ibase_close ($dbh); ?> +]]> </programlisting> </informalexample> </para> <para> <function>ibase_field_info</function>ãåç §ä¸ããã </para> - <note> - <para> - <function>ibase_num_fields</function>ã¯ç¾å¨ãPHP 4ã§ã¯åä½ãã¾ããã - </para> - </note> </refsect1> </refentry> - <refentry id="function.ibase-errmsg"> + <refentry id='function.ibase-blob-add'> <refnamediv> - <refname>ibase_errmsg</refname> + <refname>ibase_blob_add</refname> <refpurpose> - ã¨ã©ã¼ã¡ãã»ã¼ã¸ãè¿ã + çæãããblobã«ãã¼ã¿ã追å ãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> - <funcdef>string <function>ibase_errmsg</function></funcdef> - <void/> + <funcdef>int <function>ibase_blob_add</function></funcdef> + <paramdef>int <parameter>blob_id</parameter></paramdef> + <paramdef>string <parameter>data</parameter></paramdef> </funcprototype> </funcsynopsis> - <simpara> - ã¨ã©ã¼ã¡ãã»ã¼ã¸ãæããæååãè¿ãã¾ãã - </simpara> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.ibase-blob-cancel'> + <refnamediv> + <refname>ibase_blob_cancel</refname> + <refpurpose> + blobã®çæãåãæ¶ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ibase_blob_cancel</function></funcdef> + <paramdef>int <parameter>blob_id</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.ibase-blob-close'> + <refnamediv> + <refname>ibase_blob_close</refname> + <refpurpose> + blobãéãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ibase_blob_close</function></funcdef> + <paramdef>int <parameter>blob_id</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.ibase-blob-create'> + <refnamediv> + <refname>ibase_blob_create</refname> + <refpurpose> + ãã¼ã¿ã追å ããããã«blobãçæãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ibase_blob_create</function></funcdef> + <paramdef>int + <parameter><optional>link_identifier</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.ibase-blob-echo'> + <refnamediv> + <refname>ibase_blob_echo</refname> + <refpurpose> + ãã©ã¦ã¶ã«blobã®å 容ãåºåãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ibase_blob_echo</function></funcdef> + <paramdef>string <parameter>blob_id_str</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.ibase-blob-get'> + <refnamediv> + <refname>ibase_blob_get</refname> + <refpurpose> + ãªã¼ãã³ããblobãããã¼ã¿ã®ãã¤ãæ°ãåå¾ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ibase_blob_get</function></funcdef> + <paramdef>int <parameter>blob_id</parameter></paramdef> + <paramdef>int <parameter>len</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.ibase-blob-import'> + <refnamediv> + <refname>ibase_blob_import</refname> + <refpurpose> + blobãçæãããã¡ã¤ã«ãã³ãã¼ããéãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ibase_blob_import</function></funcdef> + <paramdef>int + <parameter><optional>link_identifier</optional></parameter> + </paramdef> + <paramdef>int <parameter>file_id</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.ibase-blob-info'> + <refnamediv> + <refname>ibase_blob_info</refname> + <refpurpose> + blobã®é·ãã¨ä»ã®ä¾¿å©ãªæ å ±ãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>object <function>ibase_blob_info</function></funcdef> + <paramdef>string <parameter>blob_id_str</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.ibase-blob-open'> + <refnamediv> + <refname>ibase_blob_open</refname> + <refpurpose> + ãã¼ã¿ã®ä¸é¨ãåå¾ããããã«blobããªã¼ãã³ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ibase_blob_open</function></funcdef> + <paramdef>string <parameter>blob_id</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> </refsect1> </refentry> Index: phpdoc/ja/functions/icap.xml diff -u phpdoc/ja/functions/icap.xml:1.8 phpdoc/ja/functions/icap.xml:1.9 --- phpdoc/ja/functions/icap.xml:1.8 Wed Dec 12 15:53:03 2001 +++ phpdoc/ja/functions/icap.xml Sun Jan 20 00:07:01 2002 @@ -1,17 +1,22 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.9 $ --> <reference id="ref.icap"> <title>ICAP 颿°</title> <titleabbrev>ICAP</titleabbrev> - <partintro> <simpara> - ãããã®é¢æ°ãåä½ãããããã«ã¯ãPHP ã - <option role="configure">--with-icap</option> ãä»ãã¦ã³ã³ãã¤ã« - ããå¿ è¦ãããã¾ãã - ãã®éãicap ã©ã¤ãã©ãªãã¤ã³ã¹ãã¼ã«ããã¦ããå¿ è¦ãããã¾ãã - <ulink url="&url.icap;">&url.icap;</ulink> ãã - ææ°çãå ¥æããã³ã³ãã¤ã«ãã¤ã³ã¹ãã¼ã«ãã¦ãã ããã + ãããã®é¢æ°ãåä½ãããããã«ã¯ãPHP ã<option + role="configure">--with-icap</option> ãä»ãã¦ã³ã³ãã¤ã«ããå¿ è¦ã + ããã¾ãããã®éãicap ã©ã¤ãã©ãªãã¤ã³ã¹ãã¼ã«ããã¦ããå¿ è¦ãã + ãã¾ããããã¯ããµãã¼ãããã¦ãããããåå¾å¯è½ã§ãããã¾ããã </simpara> + <note> + <simpara> + icapã¯ãè¿ãå°æ¥åé¤ããã¾ãããã®ã¢ã¸ã¥ã¼ã«ã¯ãicapã©ã¤ãã©ãªã + ãã¯ããµãã¼ãããã¦ãã¾ãããã«ã¬ã³ãæ©è½ãPHPã§ä½¿ç¨ãããå ´åã¯ã + æ¿ããã«<link linkend="ref.mcal">mcal</link>ã使ç¨ãã¦ä¸ããã + </simpara> + </note> </partintro> <refentry id="function.icap-open"> @@ -443,6 +448,98 @@ </simpara> </listitem> </itemizedlist> + </para> + </refsect1> + </refentry> + + <refentry id='function.icap-create-calendar'> + <refnamediv> + <refname>icap_create_calendar</refname> + <refpurpose> + æ°è¦ã«ã¬ã³ãã使ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>icap_create_calendar</function></funcdef> + <paramdef>int <parameter>stream_id</parameter></paramdef> + <paramdef>string <parameter>calendar</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.icap-rename-calendar'> + <refnamediv> + <refname>icap_rename_calendar</refname> + <refpurpose> + ã«ã¬ã³ãã®ååãå¤ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>icap_rename_calendar</function></funcdef> + <paramdef>int <parameter>stream_id</parameter></paramdef> + <paramdef>string <parameter>old_name</parameter></paramdef> + <paramdef>string <parameter>new_name</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.icap-delete-calendar'> + <refnamediv> + <refname>icap_delete_calendar</refname> + <refpurpose> + ã«ã¬ã³ããåé¤ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>icap_delete_calendar</function></funcdef> + <paramdef>int <parameter>stream_id</parameter></paramdef> + <paramdef>string <parameter>calendar</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.icap-reopen'> + <refnamediv> + <refname>icap_reopen</refname> + <refpurpose> + æ°è¦ã«ã¬ã³ãã¸ã®ICAPã¹ããªã¼ã ãåãªã¼ãã³ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>icap_reopen</function></funcdef> + <paramdef>int <parameter>stream_id</parameter></paramdef> + <paramdef>string <parameter>calendar</parameter></paramdef> + <paramdef>int + <parameter><optional>options</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; </para> </refsect1> </refentry> Index: phpdoc/ja/functions/iconv.xml diff -u phpdoc/ja/functions/iconv.xml:1.4 phpdoc/ja/functions/iconv.xml:1.5 --- phpdoc/ja/functions/iconv.xml:1.4 Wed Dec 12 15:53:03 2001 +++ phpdoc/ja/functions/iconv.xml Sun Jan 20 00:07:01 2002 @@ -1,4 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <reference id="ref.iconv"> <title>iconv 颿°</title> <titleabbrev>iconv</titleabbrev> @@ -50,7 +51,9 @@ <example> <title><function>iconv</function> ã®ä¾</title> <programlisting role="php"> +<![CDATA[ echo iconv("ISO-8859-1","UTF-8","This is test."); +]]> </programlisting> </example> </para> @@ -110,8 +113,10 @@ <example> <title><function>iconv_set_encoding</function> ã®ä¾</title> <programlisting role="php"> +<![CDATA[ iconv_set_encoding("internal_encoding", "UTF-8"); iconv_set_encoding("output_encoding", "ISO-8859-1"); +]]> </programlisting> </example> </para> @@ -156,7 +161,9 @@ <example> <title><function>ob_iconv_handler</function> ã®ä¾</title> <programlisting role="php"> +<![CDATA[ ob_start("ob_iconv_handler"); // åºåãããã¡ãªã³ã°ãéå§ +]]> </programlisting> </example> </para> Index: phpdoc/ja/functions/ifx.xml diff -u phpdoc/ja/functions/ifx.xml:1.13 phpdoc/ja/functions/ifx.xml:1.14 --- phpdoc/ja/functions/ifx.xml:1.13 Wed Dec 12 15:53:04 2001 +++ phpdoc/ja/functions/ifx.xml Sun Jan 20 00:07:01 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> - +<!-- $Revision: 1.14 $ --> <reference id="ref.ifx"> <title>Informix 颿°</title> <titleabbrev>Informix</titleabbrev> @@ -229,7 +229,9 @@ <example> <title>Informix ãã¼ã¿ãã¼ã¹ã¸ã®æ¥ç¶</title> <programlisting role="php"> +<![CDATA[ $conn_id = ifx_connect ("mydb@ol_srv1", "imyself", "mypassword"); +]]> </programlisting> </example> </para> @@ -334,9 +336,11 @@ <example> <title>Informix æ¥ç¶ãéãã</title> <programlisting role="php"> +<![CDATA[ $conn_id = ifx_connect (mydb@ol_srv, "itsme", "mypassword"); ... ã¯ã¨ãªã¼çãå®è¡ ... ifx_close($conn_id); +]]> </programlisting> </example> </para> @@ -430,6 +434,7 @@ <example> <title>"orders" ãã¼ãã«ã®å ¨è¡ã HTML ãã¼ãã«ã¨ãã¦è¡¨ç¤ºãã</title> <programlisting role="php"> +<![CDATA[ ifx_textasvarchar(1); // BLOB ç¨ã« "text mode" ã使ç¨ãã $res_id = ifx_query("select * from orders", $conn_id); if (! $res_id) { @@ -440,26 +445,29 @@ } ifx_htmltbl_result($res_id, "border=\"1\""); ifx_free_result($res_id); +]]> </programlisting> </example> <example> <title>å¤ã "catalog" ãã¼ãã«ã«æ¿å ¥ãã</title> <programlisting role="php"> - // ãã¤ãããã³ããã¹ãã«ã©ã ã«é¢ãã BLOB ID ã使ããã +<![CDATA[ +// ãã¤ãããã³ããã¹ãã«ã©ã ã«é¢ãã BLOB ID ã使ããã $textid = ifx_create_blob(0, 0, "Text column in memory"); $byteid = ifx_create_blob(1, 0, "Byte column in memory"); - // blob id ã blobid é åã«ä¿å +// blob id ã blobid é åã«ä¿å $blobidarray[] = $textid; $blobidarray[] = $byteid; - // ã¯ã¨ãªã¼ãå®è¡ +// ã¯ã¨ãªã¼ãå®è¡ $query = "insert into catalog (stock_num, manu_code, " . "cat_descr,cat_picture) values(1,'HRO',?,?)"; $res_id = ifx_query($query, $conn_id, $blobidarray); if (! $res_id) { - ... error ... + ... ã¨ã©ã¼ ... } - // çµæ id ãè§£æ¾ +// çµæ id ãè§£æ¾ ifx_free_result($res_id); +]]> </programlisting> </example> </para> @@ -700,15 +708,18 @@ <example> <title>Informix affected rows</title> <programlisting role="php"> -$rid = ifx_prepare ("select * from emp where name like " . $name, $connid); +<![CDATA[ +$rid = ifx_prepare ("select * from emp + where name like " . $name, $connid); if (! $rid) { ... error ... } $rowcount = ifx_affected_rows ($rid); if ($rowcount > 1000) { - printf ("Too many rows in result set (%d)\n<br>", $rowcount); - die ("Please restrict your query<br>\n"); + printf ("Too many rows in result set (%d)\n<br>", $rowcount); + die ("Please restrict your query<br>\n"); } +]]> </programlisting> </example> </refsect1> @@ -752,6 +763,7 @@ <example> <title>Informix sqlca.sqlerrd[x] ã®å¤ãåå¾ãã</title> <programlisting role="php"> +<![CDATA[ /* 'sometable' ã®æåã®ã«ã©ã ã¯é£çªã§ããã¨ä»®å®ãã */ $qid = ifx_query("insert into sometable values(0, '2nd column', 'another column') ", $connid)); @@ -760,7 +772,8 @@ } $sqlca = ifx_getsqlca ($qid); $serial_value = $sqlca["sqlerrd1"]; -echo "æ¿å ¥ãããè¡ã®ç¶ãçªå·ã¯ : " . "$serial_value<br>\n"; +echo "æ¿å ¥ãããè¡ã®ç¶ãçªå·ã¯ : " . "$serial_value<br>\n"; +]]> </programlisting> </example> </refsect1> @@ -801,8 +814,7 @@ ã«ããè¿ãããæå¹ãªçµæ ID ã§ãã </para> <para> - <parameter><replaceable><optional>position</optional></replaceable></parameter> - ã¯ããªãã·ã§ã³ + <parameter>position</parameter>ã¯ããªãã·ã§ã³ ãã©ã¡ã¼ã¿ã§ã"ã¹ã¯ãã¼ã«" ã«ã¼ã½ã«ã§ "åå¾" æä½ãè¡ãããã®ãã®ã§ã 次ã®ããã«ãªãã¾ãã "NEXT", "PREVIOUS", "CURRENT", "FIRST", "LAST" ,ã¾ãã¯çªå·ã @@ -823,6 +835,7 @@ <example> <title>Informix è¡ã®åå¾</title> <programlisting role="php"> +<![CDATA[ $rid = ifx_prepare ("select * from emp where name like " . $name, $connid, IFX_SCROLL); if (! $rid) { @@ -830,8 +843,8 @@ } $rowcount = ifx_affected_rows($rid); if ($rowcount > 1000) { - printf ("Too many rows in result set (%d)\n<br>", $rowcount); - die ("Please restrict your query<br>\n"); + printf ("Too many rows in result set (%d)\n<br>", $rowcount); + die ("Please restrict your query<br>\n"); } if (! ifx_do ($rid)) { ... error ... @@ -842,10 +855,11 @@ $fieldvalue = $row[$fieldname]; printf ("%s = %s,", $fieldname, $fieldvalue); } - printf("\n<br>"); + printf("\n<br>"); $row = ifx_fetch_row ($rid, "NEXT"); } ifx_free_result ($rid); +]]> </programlisting> </example> </refsect1> @@ -882,6 +896,7 @@ <example> <title>Informix çµæã HTML ãã¼ãã«ã¨ãã¦åºå</title> <programlisting role="php"> +<![CDATA[ $rid = ifx_prepare ("select * from emp where name like " . $name, $connid, IFX_SCROLL); if (! $rid) { @@ -889,8 +904,8 @@ } $rowcount = ifx_affected_rows ($rid); if ($rowcount > 1000) { - printf ("Too many rows in result set (%d)\n<br>", $rowcount); - die ("Please restrict your query<br>\n"); + printf ("Too many rows in result set (%d)\n<br>", $rowcount); + die ("Please restrict your query<br>\n"); } if (! ifx_do($rid) { ... error ... @@ -899,6 +914,7 @@ ifx_htmltbl_result ($rid, "border=\"2\""); ifx_free_result($rid); +]]> </programlisting> </example> </refsect1> @@ -925,15 +941,17 @@ <example> <title>ãã£ã¼ã«ãåããã³ SQL ãã£ã¼ã«ãå</title> <programlisting role="php"> +<![CDATA[ $types = ifx_fieldtypes ($resultid); if (! isset ($types)) { ... ã¨ã©ã¼å¦ç ... } -for ($i = 0; $i < count($types); $i++) { +for ($i = 0; $i < count($types); $i++) { $fname = key($types); printf("%s :\t type = %s\n", $fname, $types[$fname]); next($types); } +]]> </programlisting> </example> </refsect1> @@ -967,15 +985,17 @@ <example> <title>Informix SQL ãã£ã¼ã«ãããããã£</title> <programlisting role="php"> +<![CDATA[ $properties = ifx_fieldproperties ($resultid); if (! isset($properties)) { ... error ... } -for ($i = 0; $i < count($properties); $i++) { +for ($i = 0; $i < count($properties); $i++) { $fname = key ($properties); printf ("%s:\t type = %s\n", $fname, $properties[$fname]); next ($properties); } +]]> </programlisting> </example> </refsect1> @@ -1518,10 +1538,10 @@ </funcprototype> </funcsynopsis> <para> - SLOB ãªãã¸ã§ã¯ããæååã«æ¸ããã¿ã¾ãã<parameter>bid</parameter> - ã¯åå¨ãã SLOB ID ã<parameter>content</parameter> 㯠- æ¸ãããå 容ã§ãã - ã¨ã©ã¼ã® å ´åã« &false;ããã®ä»ã®å ´åã«æ¸ãããã ãã¤ãæ°ãè¿ãã¾ãã + SLOBãªãã¸ã§ã¯ããæååã«æ¸ããã¿ã¾ãã + <parameter>bid</parameter>ã¯åå¨ãã SLOB ID ã + <parameter>content</parameter> ã¯æ¸ãããå 容ã§ããã¨ã©ã¼ã®å ´åã« + &false;ããã®ä»ã®å ´åã«æ¸ãããã ãã¤ãæ°ãè¿ãã¾ãã </para> </refsect1> </refentry> Index: phpdoc/ja/functions/image.xml diff -u phpdoc/ja/functions/image.xml:1.28 phpdoc/ja/functions/image.xml:1.29 --- phpdoc/ja/functions/image.xml:1.28 Wed Dec 12 15:53:05 2001 +++ phpdoc/ja/functions/image.xml Sun Jan 20 00:07:01 2002 @@ -1,7 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.29 $ --> <reference id="ref.image"> - <title>ã¤ã¡ã¼ã¸é¢æ°</title> - <titleabbrev>ã°ã©ãã£ãã¯ã¹</titleabbrev> + <title>ã¤ã¡ã¼ã¸é¢æ°(image)</title> + <titleabbrev>ã¤ã¡ã¼ã¸</titleabbrev> <partintro> <simpara> @@ -70,8 +71,10 @@ <example> <title>GetImageSize (ãã¡ã¤ã«)</title> <programlisting role="php"> -<?php $size = GetImageSize ("img/flag.jpg"); ?> -<IMG SRC="img/flag.jpg" <?php echo $size[3]; ?> +<![CDATA[ +<?php $size = GetImageSize ("img/flag.jpg"); ?> +<IMG SRC="img/flag.jpg" <?php echo $size[3]; ?> +]]> </programlisting> </example> </para> @@ -79,7 +82,9 @@ <example> <title>GetImageSize (URL)</title> <programlisting role="php"> -<?php $size = GetImageSize ("http://www.php.net/gifs/logo.gif"); ?> +<![CDATA[ +<?php $size = GetImageSize ("http://www.php.net/gifs/logo.gif"); ?> +]]> </programlisting> </example> </para> @@ -96,13 +101,15 @@ <example> <title>IPTC ãè¿ã GetImageSize</title> <programlisting> - <?php - $size = GetImageSize ("testimg.jpg",&$info); - if (isset ($info["APP13"])) { - $iptc = iptcparse ($info["APP13"]); - var_dump ($iptc); - } - ?> +<![CDATA[ +<?php + $size = GetImageSize ("testimg.jpg",&$info); + if (isset ($info["APP13"])) { + $iptc = iptcparse ($info["APP13"]); + var_dump ($iptc); + } +?> +]]> </programlisting> </example> <note> @@ -119,6 +126,49 @@ </refsect1> </refentry> + <refentry id="function.image2wbmp"> + <refnamediv> + <refname>Image2WBMP</refname> + <refpurpose>ãã©ã¦ã¶ã¾ãã¯ãã¡ã¤ã«ã«ã¤ã¡ã¼ã¸ãåºåãã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>image2WBMP</function></funcdef> + <paramdef>int <parameter>im</parameter></paramdef> + <paramdef>string + <parameter><optional>filename</optional></parameter> + </paramdef> + <paramdef>int + <parameter><optional>threshold</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>Image2WBMP</function>ã¯ãã¤ã¡ã¼ã¸ + <parameter>im</parameter>ããfilenameã«<acronym>WBMP</acronym>ãã¡ + ã¤ã«ã使ãã¾ãã<parameter>im</parameter>弿°ã¯ã + <function>ImageCreate</function>ããè¿ããã¾ãã + </para> + <para> + 弿°filenameã¯ãªãã·ã§ã³ã§ãçç¥ãããå ´åã«ã¯ãçã®ã¤ã¡ã¼ã¸ã¹ã + ãªã¼ã ãç´æ¥åºåããã¾ãã<function>header</function>ãç¨ã㦠+ <acronym>image/vnd.wap.wbmp</acronym> content-typeãéä¿¡ããã㨠+ ã«ãããWBMPã¤ã¡ã¼ã¸ã«ç´æ¥åºåããPHPã¹ã¯ãªãããçæå¯è½ã§ãã + </para> + <note> + <para> + WBMPãµãã¼ãã¯ãGD-1.8以éã§PHPãã³ã³ãã¤ã«ãããå ´åã®ã¿å©ç¨å¯è½ + ã§ãã + </para> + </note> + <para> + <function>ImageWBMP</function>ãåç §ä¸ããã + </para> + </refsect1> + </refentry> + <refentry id="function.imagealphablending"> <refnamediv> <refname>ImageAlphaBlending</refname> @@ -182,6 +232,11 @@ æ¹ãå§ç¹ã¨çµç¹ã¯å¼æ°<parameter>s</parameter>㨠<parameter>e</parameter>ã«ãã度(deg)ã§æå®ãã¾ãã </para> + <para> + <function>ImageEllipse</function>, + <function>ImageFilledEllipse</function>, + <function>ImageFilledArc</function>ãåç §ä¸ããã + </para> </refsect1> </refentry> @@ -267,6 +322,9 @@ ãã®é¢æ°ã¯PHP 4.0.6ã§è¿½å ãããGD 2.0.1以éãå¿ è¦ã¨ãã¾ãã </para> </note> + <para> + <function>ImageArc</function>ãåç §ä¸ããã + </para> </refsect1> </refentry> @@ -301,6 +359,9 @@ ãã®é¢æ°ã¯PHP 4.0.6ã§è¿½å ãããGD 2.0.1以éãå¿ è¦ã¨ãã¾ãã </para> </note> + <para> + <function>ImageFilledArc</function>ãåç §ä¸ããã + </para> </refsect1> </refentry> @@ -392,8 +453,10 @@ ç»åä¸ã§ä½¿ç¨ãããåã ã®è²ã使ããéã«ã³ã¼ã«ããå¿ è¦ãããã¾ãã <informalexample> <programlisting role="php"> +<![CDATA[ $white = ImageColorAllocate ($im, 255, 255, 255); $black = ImageColorAllocate ($im, 0, 0, 0); +]]> </programlisting> </informalexample> </para> @@ -427,8 +490,10 @@ <function>ImageColorAllocate</function>ã§ç¢ºä¿ãããè²ãéæ¾ãã¾ãã <informalexample> <programlisting role="php"> +<![CDATA[ $white = ImageColorAllocate($im, 255, 255, 255); ImageColorDeAllocate($im, $white); +]]> </programlisting> </informalexample> </para> @@ -526,6 +591,30 @@ </refsect1> </refentry> + <refentry id='function.imagecolorclosesthwb'> + <refnamediv> + <refname>ImageColorClosestThwb</refname> + <refpurpose> + æå®ããè²ã«æãè¿ãhueãç½ãé»ãæããè²ã®ã¤ã³ããã¯ã¹ãå¾ã + </refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagecolorclosesthwb</function></funcdef> + <paramdef>int <parameter>im</parameter></paramdef> + <paramdef>int <parameter>red</parameter></paramdef> + <paramdef>int <parameter>green</parameter></paramdef> + <paramdef>int <parameter>blue</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + <refentry id="function.imagecolorexact"> <refnamediv> <refname>ImageColorExact</refname> @@ -663,8 +752,8 @@ <funcprototype> <funcdef>int <function>imagegammacorrect</function></funcdef> <paramdef>int <parameter>im</parameter></paramdef> - <paramdef>double <parameter>inputgamma</parameter></paramdef> - <paramdef>double <parameter>outputgamma</parameter></paramdef> + <paramdef>float <parameter>inputgamma</parameter></paramdef> + <paramdef>float <parameter>outputgamma</parameter></paramdef> </funcprototype> </funcsynopsis> <para> @@ -856,6 +945,11 @@ 100ã®å ´åããã®é¢æ°ã®åä½ã¯ã<function>ImageCopy</function>ã¨åã ã¨ãªãã¾ãã </para> + <note> + <para> + ãã®é¢æ°ã¯PHP 4.0.6ã§è¿½å ããã¾ããã + </para> + </note> </refsect1> </refentry> @@ -1023,15 +1117,17 @@ æ°è¦ã«GDã¤ã¡ã¼ã¸ã¹ããªã¼ã ã使ããã¤ã¡ã¼ã¸ãåºåãã¾ãã </title> <programlisting role="php"> -<? +<![CDATA[ +<?php header ("Content-type: image/png"); $im = @ImageCreate (50, 100) - or die ("Cannot Initialize new GD image stream"); + or die ("Cannot Initialize new GD image stream"); $background_color = ImageColorAllocate ($im, 255, 255, 255); $text_color = ImageColorAllocate ($im, 233, 14, 91); ImageString ($im, 1, 5, 5, "A Simple Text String", $text_color); ImagePng ($im); ?> +]]> </programlisting> </example> </refsect1> @@ -1106,6 +1202,73 @@ </refsect1> </refentry> + <refentry id='function.imagecreatefromgd'> + <refnamediv> + <refname>ImageCreateFromGD</refname> + <refpurpose> + GDãã¡ã¤ã«ã¾ãã¯URLããæ°è¦ã¤ã¡ã¼ã¸ãçæãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagecreatefromgd</function></funcdef> + <paramdef>string <parameter>filename</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.imagecreatefromgd2'> + <refnamediv> + <refname>ImageCreateFromGD2</refname> + <refpurpose> + GD2ãã¡ã¤ã«ã¾ãã¯URLããæ°è¦ã¤ã¡ã¼ã¸ãçæãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagecreatefromgd2</function></funcdef> + <paramdef>string <parameter>filename</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.imagecreatefromgd2part'> + <refnamediv> + <refname>ImageCreateFromGD2Part</refname> + <refpurpose> + GD2ãã¡ã¤ã«ã¾ãã¯URLã®æå®ããé¨åããæ°è¦ã¤ã¡ã¼ã¸ãçæãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagecreatefromgd2part</function></funcdef> + <paramdef>string <parameter>filename</parameter></paramdef> + <paramdef>int <parameter>srcX</parameter></paramdef> + <paramdef>int <parameter>srcY</parameter></paramdef> + <paramdef>int <parameter>width</parameter></paramdef> + <paramdef>int <parameter>height</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + <refentry id="function.imagecreatefromgif"> <refnamediv> <refname>ImageCreateFromGif</refname> @@ -1133,18 +1296,20 @@ 使æã®ã¨ã©ã¼ãå¦çããä¾ (vic@zymsys.com ã«ãã) </title> <programlisting role="php"> - function LoadGif ($imgname) - { +<![CDATA[ +function LoadGif ($imgname) { $im = @imagecreatefromgif ($imgname); /* ãªã¼ãã³ãè¡ã */ if (!$im) { /* 失æãããã©ããã調ã¹ã */ $im = ImageCreate (150,30); /* 空ã®ç»åã使 */ $bgc = ImageColorAllocate ($im,255,255,255); $tc = ImageColorAllocate ($im,0,0,0); ImageFilledRectangle ($im,0,0,150,30,$bgc); - ImageString ($im,1,5,5,"Error loading $imgname",$tc); /* errmsg ãåºå */ + /* errmsg ãåºå */ + ImageString ($im,1,5,5,"Error loading $imgname",$tc); } return $im; } +]]> </programlisting> </example> <note> @@ -1184,8 +1349,8 @@ 使æã®ã¨ã©ã¼ãå¦çããä¾ (vic@zymsys.comã«ãã) </title> <programlisting role="php"> -function LoadJpeg ($imgname) -{ +<![CDATA[ +function LoadJpeg ($imgname) { $im = @imagecreatefromjpeg ($imgname); /* ãªã¼ãã³ã試ã¿ã */ if (!$im) { /* ãªã¼ãã³ã«å¤±æããå ´å */ $im = ImageCreate (150,30); /* 空ã®ç»åã使 */ @@ -1196,6 +1361,7 @@ } return $im; } +]]> </programlisting> </example> </para> @@ -1230,8 +1396,8 @@ 使æã®ã¨ã©ã¼ãå¦çããä¾(vic@zymsys.comã«ãã) </title> <programlisting role="php"> -function LoadPNG ($imgname) -{ +<![CDATA[ +function LoadPNG ($imgname) { $im = @imagecreatefrompng ($imgname); /* ãªã¼ãã³ã試ã¿ã */ if (!$im) { /* 失æããå ´å */ $im = ImageCreate (150,30); /* 空ã®ç»åã使 */ @@ -1242,6 +1408,7 @@ } return $im; } +]]> </programlisting> </example> </para> @@ -1279,6 +1446,7 @@ 使æã®ã¨ã©ã¼ãå¦çããä¾ (vic@zymsys.com ã«ãã) </title> <programlisting role="php"> +<![CDATA[ function LoadWBMP ($imgname) { $im = @ImageCreateFromWBMP ($imgname); /* ãªã¼ãã³ãã */ if (!$im) { /* 失æãããã©ããå¤å® */ @@ -1291,9 +1459,16 @@ } return $im; } +]]> </programlisting> </example> </para> + <note> + <para> + WBMPãµãã¼ãã¯ãGD-1.8以éã§ã³ã³ãã¤ã«ãããPHPã§ã®ã¿å©ç¨å¯è½ã§ + ãã + </para> + </note> </refsect1> </refentry> @@ -1319,6 +1494,46 @@ </refsect1> </refentry> + <refentry id="function.imagecreatefromxbm"> + <refnamediv> + <refname>ImageCreateFromXBM</refname> + <refpurpose>ãã¡ã¤ã«åã¯URLããæ°è¦ã¤ã¡ã¼ã¸ãçæãã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagecreatefromxbm</function></funcdef> + <paramdef>string <parameter>filename</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>ImageCreateFromXBM</function>ã¯ãæå®ããfilenameããå¾ + ãããã¤ã¡ã¼ã¸ã表ãã¤ã¡ã¼ã¸IDãè¿ãã¾ãã + </para> + </refsect1> + </refentry> + + <refentry id="function.imagecreatefromxpm"> + <refnamediv> + <refname>ImageCreateFromXPM</refname> + <refpurpose>ãã¡ã¤ã«ã¾ãã¯URLããæ°è¦ã¤ã¡ã¼ã¸ãçæãã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagecreatefromxpm</function></funcdef> + <paramdef>string <parameter>filename</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>ImageCreateFromXPM</function>ã¯ãæå®ããfilenameããå¾ + ãããã¤ã¡ã¼ã¸ã表ãã¤ã¡ã¼ã¸IDãè¿ãã¾ãã + </para> + </refsect1> + </refentry> + <refentry id="function.imagedashedline"> <refnamediv> <refname>ImageDashedLine</refname> @@ -1338,13 +1553,8 @@ </funcprototype> </funcsynopsis> <para> - <function>ImageDashedLine</function>ã¯ãç»å<parameter>im</parameter>ã« - (<parameter>x1</parameter>, <parameter>y1</parameter>)ãã - (<parameter>x2</parameter>, <parameter>y2</parameter>)ã¾ã§(å·¦ä¸ã0,0) - <parameter>col</parameter>è²ã§ç ´ç·ãæç»ãã¾ãã - </para> - <para> - <function>imageline</function>ãåèã«ãã¦ãã ããã + ããã¯å¤ã颿°ã§ããæ¿ããã«<function>ImageSetStyle</function>㨠+ <function>ImageLine</function>ã®çµã¿åãã使ç¨ãã¦ä¸ããã </para> </refsect1> </refentry> @@ -1523,6 +1733,54 @@ </refsect1> </refentry> + <refentry id='function.imagegd'> + <refnamediv> + <refname>ImageGD</refname> + <refpurpose> + GDã¤ã¡ã¼ã¸ããã©ã¦ã¶ã¾ãã¯ãã¡ã¤ã«ã«åºåãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagegd</function></funcdef> + <paramdef>int <parameter>im</parameter></paramdef> + <paramdef>string + <parameter><optional>filename</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.imagegd2'> + <refnamediv> + <refname>ImageGD2</refname> + <refpurpose> + GD2ã¤ã¡ã¼ã¸ããã©ã¦ã¶ã¾ãã¯ãã¡ã¤ã«ã«åºåãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagegd2</function></funcdef> + <paramdef>int <parameter>im</parameter></paramdef> + <paramdef>string + <parameter><optional>filename</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + <refentry id="function.imagegif"> <refnamediv> <refname>ImageGif</refname> @@ -1572,7 +1830,8 @@ ãã³ã¼ãã«ç½®æãã¦ä¸ããã <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php if (function_exists("imagegif")) { Header("Content-type: image/gif"); ImageGIF($im); @@ -1592,7 +1851,8 @@ else { die("ãã®PHPãµã¼ãã¼ã§ã¯ã¤ã¡ã¼ã¸ã¯ãµãã¼ãããã¦ãã¾ãã"); } -?> +?> +]]> </programlisting> </informalexample> </para> @@ -1605,12 +1865,14 @@ ã§ãã <informalexample> <programlisting role="php"> -if (ImageTypes() & IMG_GIF) { - Header ("Content-type: image/gif"); - ImageGif ($im); +<![CDATA[ +if (ImageTypes() & IMG_GIF) { + Header("Content-type: image/gif"); + ImageGif($im); } -elseif (ImageTypes() & IMG_JPG) { +elseif (ImageTypes() & IMG_JPG) { ... çã +]]> </programlisting> </informalexample> </para> @@ -1653,8 +1915,12 @@ ã¯ãã®ãã¡ã¤ã«ã«ã¤ã¡ã¼ã¸ãåºåãã¾ãã <informalexample> <programlisting role="php"> +<![CDATA[ +<?php $im = ImageCreateFromPng("test.png"); ImagePng($im); +?> +]]> </programlisting> </informalexample> </para> @@ -1907,6 +2173,31 @@ </refsect1> </refentry> + <refentry id="function.imagepalettecopy"> + <refnamediv> + <refname>ImagePaletteCopy</refname> + <refpurpose> + ããã¤ã¡ã¼ã¸ããä»ã®ã¤ã¡ã¼ã¸ã«ãã¬ãããã³ãã¼ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagepalettecopy</function></funcdef> + <paramdef>resource <parameter>destination</parameter></paramdef> + <paramdef>resource <parameter>source</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>imagepalettecopy</function>ã¯ã + <parameter>source</parameter>ã¤ã¡ã¼ã¸ãã + <parameter>destination</parameter>ã¤ã¡ã¼ã¸ã«ãã¬ãããã³ãã¼ãã¾ + ãã + </para> + </refsect1> + </refentry> + <refentry id="function.imagepolygon"> <refnamediv> <refname>ImagePolygon</refname> @@ -2150,7 +2441,8 @@ </para> <para> <programlisting role="php"> -<?php +<![CDATA[ +<?php Header ("Content-type: image/jpeg"); $im = ImageCreate (350, 45); $black = ImageColorAllocate ($im, 0, 0, 0); @@ -2162,7 +2454,8 @@ ImagePsFreeFont($font); ImageJpeg($im, "", 100);//for best quality... your mileage may vary ImageDestroy ($im); -?> +?> +]]> </programlisting> </para> <para> @@ -2182,7 +2475,7 @@ <funcprototype> <funcdef>bool <function>imagepsextendfont</function> </funcdef> <paramdef>int <parameter>font_index</parameter></paramdef> - <paramdef>double <parameter>extend</parameter></paramdef> + <paramdef>float <parameter>extend</parameter></paramdef> </funcprototype> </funcsynopsis> <para> @@ -2204,7 +2497,7 @@ <funcprototype> <funcdef>bool <function>imagepsslantfont</function></funcdef> <paramdef>int <parameter>font_index</parameter></paramdef> - <paramdef>double <parameter>slant</parameter></paramdef> + <paramdef>float <parameter>slant</parameter></paramdef> </funcprototype> </funcsynopsis> <para> @@ -2234,10 +2527,18 @@ <paramdef>int <parameter>background</parameter></paramdef> <paramdef>int <parameter>x</parameter></paramdef> <paramdef>int <parameter>y</parameter></paramdef> - <paramdef>int <parameter>space</parameter></paramdef> - <paramdef>int <parameter>tightness</parameter></paramdef> - <paramdef>float <parameter>angle</parameter></paramdef> - <paramdef>int <parameter>antialias_steps</parameter></paramdef> + <paramdef>int + <parameter><optional>space</optional></parameter> + </paramdef> + <paramdef>int + <parameter><optional>tightness</optional></parameter> + </paramdef> + <paramdef>float + <parameter><optional>angle</optional></parameter> + </paramdef> + <paramdef>int + <parameter><optional>antialias_steps</optional></parameter> + </paramdef> </funcprototype> </funcsynopsis> <para> @@ -2411,6 +2712,74 @@ </refsect1> </refentry> + <refentry id="function.imagesetstyle"> + <refnamediv> + <refname>ImageSetStyle</refname> + <refpurpose>ç·æç»ç¨ã®ã¹ã¿ã¤ã«ãè¨å®ãã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagesetstyle</function></funcdef> + <paramdef>resource <parameter>im</parameter></paramdef> + <paramdef>array <parameter>style</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>ImageSetStyle</function>ã¯ãç¹å¥ãª + <literal>IMG_COLOR_STYLED</literal>ã¾ãã¯è²ãæããã¤ã¡ã¼ã¸ã®ç· + <literal>IMG_COLOR_STYLEDBRUSHED</literal>ãæç»ããéã« + (<function>ImageLine</function>㨠+ <function>ImagePolygon</function>ã®ãããª) + å ¨ã¦ã®ç·æç»é¢æ°ã§ä½¿ç¨ãããã¹ã¿ã¤ã«ãè¨å®ãã¾ãã + </para> + <para> + ãã©ã¡ã¼ã¿<parameter>style</parameter>ã¯ãã¯ã»ã«ã®é åã§ããä»¥ä¸ + ã®ä¾ã¯ããã£ã³ãã¹ã®å·¦ä¸ããå³ä¸é ã«ç ´ç·ãæç»ããã¹ã¯ãªããã§ãã + <example> + <title>ImageSetStyle</title> + <programlisting role="php"> +<![CDATA[ +<?php +Header ("Content-type: image/png"); +$im = imagecreate (100, 100); +$w = ImageColorAllocate ($im, 255, 255, 255); +$red = ImageColorAllocate ($im, 255, 0, 0); + +/* Draw a dashed line, 5 red pixels, 5 white pixels */ +$style=array($red,$red,$red,$red,$red,$w,$w,$w,$w,$w); +ImageSetStyle($im, $style); +ImageLine($im, 0, 0, 100, 100, IMG_COLOR_STYLED); + +/* Draw a line of happy faces using ImageSetBrush() with ImageSetStyle */ +$style=array($w,$w,$w,$w,$w,$w,$w,$w,$w,$w,$w,$w,$red); +ImageSetStyle($im, $style); + +$brush=ImageCreateFromPng("http://www.libpng.org/pub/png/images/smile.happy.png"); +ImageColorTransparent($brush, $w); +ImageSetBrush($im, $brush); +ImageLine($im, 100, 0, 0, 100, IMG_COLOR_STYLEDBRUSHED); + +ImagePng($im); +ImageDestroy ($im); +?> +]]> + </programlisting> + </example> + </para> + <para> + <function>ImageSetBrush</function>, + <function>ImageLine</function>ãåç §ä¸ããã + </para> + <note> + <para> + ãã®é¢æ°ã¯ãPHP 4.0.6ã§è¿½å ããã¾ããã + </para> + </note> + </refsect1> + </refentry> + <refentry id="function.imagesettile"> <refnamediv> <refname>ImageSetTile</refname> @@ -2704,6 +3073,33 @@ </refsect1> </refentry> + <refentry id='function.imageftbbox'> + <refnamediv> + <refname>ImageFtBBox</refname> + <refpurpose> + freetype2ã«ãããã©ã³ããç¨ããããã¹ããå²ãç®±ãåå¾ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>imageftbbox</function></funcdef> + <paramdef>int <parameter>size</parameter></paramdef> + <paramdef>int <parameter>angle</parameter></paramdef> + <paramdef>string <parameter>font_file</parameter></paramdef> + <paramdef>string <parameter>text</parameter></paramdef> + <paramdef>array + <parameter><optional>extrainfo</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + <refentry id="function.imagettftext"> <refnamediv> <refname>ImageTTFText</refname> @@ -2771,15 +3167,18 @@ <example> <title>ImageTTFText</title> <programlisting> -<?php -Header("Content-type: image/gif"); -$im = imagecreate(400,30); -$black = ImageColorAllocate($im, 0,0,0); -$white = ImageColorAllocate($im, 255,255,255); -ImageTTFText($im, 20, 0, 10, 20, $white, "/path/arial.ttf", "Testing... Omega: &#937;"); -ImageGif($im); -ImageDestroy($im); -?> +<![CDATA[ +<?php +Header ("Content-type: image/gif"); +$im = imagecreate (400, 30); +$black = ImageColorAllocate ($im, 0, 0, 0); +$white = ImageColorAllocate ($im, 255, 255, 255); +ImageTTFText ($im, 20, 0, 10, 20, $white, "/path/arial.ttf", + "Testing... Omega: Ω"); +ImageGif ($im); +ImageDestroy ($im); +?> +]]> </programlisting> </example> </para> @@ -2793,6 +3192,37 @@ </refsect1> </refentry> + <refentry id='function.imagefttext'> + <refnamediv> + <refname>ImageFtText</refname> + <refpurpose> + FreeType 2ã«ãããã©ã³ããç¨ãã¦ã¤ã¡ã¼ã¸ã«ããã¹ããæç»ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>imagefttext</function></funcdef> + <paramdef>int <parameter>im</parameter></paramdef> + <paramdef>int <parameter>size</parameter></paramdef> + <paramdef>int <parameter>angle</parameter></paramdef> + <paramdef>int <parameter>x</parameter></paramdef> + <paramdef>int <parameter>y</parameter></paramdef> + <paramdef>int <parameter>col</parameter></paramdef> + <paramdef>string <parameter>font_file</parameter></paramdef> + <paramdef>string <parameter>text</parameter></paramdef> + <paramdef>array + <parameter><optional>extrainfo</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + <refentry id="function.imagetypes"> <refnamediv> <refname>ImageTypes</refname> @@ -2811,22 +3241,102 @@ <para> ãã®é¢æ°ã¯ãPHPã«ãªã³ã¯ããã¦ããGDã®ãã¼ã¸ã§ã³ã§ãµãã¼ãããã¦ã ãã¤ã¡ã¼ã¸ã®å½¢å¼ã«å¯¾å¿ããããããã£ã¼ã«ããè¿ãã¾ããæ¬¡ã®ãã - ããè¿ããã¾ããIMG_GIF | IMG_JPG | IMG_PNG | IMG_WBMP - ä¾ãã°ãPNGã®ãµãã¼ãã確èªããã«ã¯ã次ã®ããã«ãã¾ãã + ããè¿ããã¾ãã<literal>IMG_GIF</literal> | + <literal>IMG_JPG</literal> | <literal>IMG_PNG</literal> | + <literal>IMG_WBMP</literal> ä¾ãã°ãPNGã®ãµãã¼ãã確èªããã«ã¯ã + 次ã®ããã«ãã¾ãã <example> <title>ImageTypes</title> <programlisting role="php"> -<?php -if(ImageTypes() & IMG_PNG) { +<![CDATA[ +<?php +if(ImageTypes() & IMG_PNG) { echo "PNG ãµãã¼ããæå¹ã§ã"; } - ?> +?> +]]> </programlisting> </example> </para> </refsect1> </refentry> + <refentry id="function.jpeg2wbmp"> + <refnamediv> + <refname>JPEG2WBMP</refname> + <refpurpose> + JPEGã¤ã¡ã¼ã¸ãã¡ã¤ã«ããWBMPã¤ã¡ã¼ã¸ãã¡ã¤ã«ã«å¤æãã + </refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>jpeg2wbmp</function></funcdef> + <paramdef>string <parameter>jpegname</parameter></paramdef> + <paramdef>string <parameter>wbmpname</parameter></paramdef> + <paramdef>int <parameter>d_height</parameter></paramdef> + <paramdef>int <parameter>d_width</parameter></paramdef> + <paramdef>int <parameter>threshold</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + <parameter>jpegname</parameter> JPEGãã¡ã¤ã«ããWBMPãã©ã¼ããã + ã«å¤æãã<parameter>wbmpname</parameter>ã¨ãã¦ä¿åãã¾ãã + <parameter>d_height</parameter>ã¨<parameter>d_width</parameter>ã + æå®ããã¨ãåºåã¤ã¡ã¼ã¸ã®é«ãã¨å¹ ãæå®ãã¾ãã + </para> + <para> + <note> + <para> + WBMPãµãã¼ãã¯ãGD-1.8以éã§ã³ã³ãã¤ã«ããPHPã§ã®ã¿å©ç¨å¯è½ã§ãã + </para> + </note> + </para> + <para> + <function>png2wbmp</function>ãåç §ä¸ããã + </para> + </refsect1> + </refentry> + + <refentry id="function.png2wbmp"> + <refnamediv> + <refname>PNG2WBMP</refname> + <refpurpose> + PNGã¤ã¡ã¼ã¸ãã¡ã¤ã«ããWBMPã¤ã¡ã¼ã¸ãã¡ã¤ã«ã«å¤æãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>png2wbmp</function></funcdef> + <paramdef>string <parameter>pngname</parameter></paramdef> + <paramdef>string <parameter>wbmpname</parameter></paramdef> + <paramdef>int <parameter>d_height</parameter></paramdef> + <paramdef>int <parameter>d_width</parameter></paramdef> + <paramdef>int <parameter>threshold</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + <parameter>pngname</parameter> PNGãã¡ã¤ã«ããWBMPãã©ã¼ããã + ã«å¤æãã<parameter>wbmpname</parameter>ã¨ãã¦ä¿åãã¾ãã + <parameter>d_height</parameter>ã¨<parameter>d_width</parameter>ã + æå®ããã¨ãåºåã¤ã¡ã¼ã¸ã®é«ãã¨å¹ ãæå®ãã¾ãã + </para> + <para> + <note> + <para> + WBMPãµãã¼ãã¯ãGD-1.8以éã§ã³ã³ãã¤ã«ããPHPã§ã®ã¿å©ç¨å¯è½ã§ãã + </para> + </note> + </para> + <para> + <function>jpeg2wbmp</function>ãåç §ä¸ããã + </para> + </refsect1> + </refentry> + <refentry id="function.read-exif-data"> <refnamediv> <refname>read_exif_data</refname> @@ -2851,14 +3361,15 @@ <example> <title>read_exif_data</title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $exif = read_exif_data ('p0001807.jpg'); while(list($k,$v)=each($exif)) { - echo "$k: $v<br>\n"; + echo "$k: $v<br>\n"; } ?> -åºå: +Output: FileName: p0001807.jpg FileDateTime: 929353056 FileSize: 378599 @@ -2879,6 +3390,7 @@ RawFocusDistance: 16.659999847412 Orientation: 1 ExifVersion: 0200 +]]> </programlisting> </example> </para> @@ -2892,6 +3404,31 @@ ãã®é¢æ°ã¯ãGDã¤ã¡ã¼ã¸ã©ã¤ãã©ãªãå¿ è¦ã¨ãã¾ããã </simpara> </note> + </para> + </refsect1> + </refentry> + + <refentry id='function.iptcembed'> + <refnamediv> + <refname>iptcembed</refname> + <refpurpose> + ãã¤ããªIPTCãã¼ã¿ãJPEGã¤ã¡ã¼ã¸ã«åããã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>iptcembed</function></funcdef> + <paramdef>string <parameter>iptcdata</parameter></paramdef> + <paramdef>string <parameter>jpeg_file_name</parameter></paramdef> + <paramdef>int + <parameter><optional>spool</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + &warn.undocumented.func; </para> </refsect1> </refentry>