cvs: phpdoc /ja/chapters config.xml /ja/functions sesam.xml
| From: | Rui Hirokawa | Date: | Sat, 16 Dec 2000 15:00:51 +0000 |
| Subject: | cvs: phpdoc /ja/chapters config.xml /ja/functions sesam.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969333314@lists.php.net to get a copy of this message | ||
hirokawa Sat Dec 16 07:00:51 2000 EDT
Modified files:
/phpdoc/ja/chapters config.xml
/phpdoc/ja/functions sesam.xml
Log:
update translation.
Index: phpdoc/ja/chapters/config.xml diff -u phpdoc/ja/chapters/config.xml:1.7 phpdoc/ja/chapters/config.xml:1.8 --- phpdoc/ja/chapters/config.xml:1.7 Fri Oct 13 08:30:56 2000 +++ phpdoc/ja/chapters/config.xml Sat Dec 16 07:00:51 2000 @@ -614,7 +614,7 @@ </term> <listitem> <para> - PHP ãã¡ã¤ã«ãã¦ã¼ã¶ã¼ã®ãã¼ã ãã£ã¬ã¯ããªã¨ãã¦ä½¿ç¨ãã + PHP ãã¡ã¤ã«ãã¦ã¼ã¶ã¼ã®ãã¼ã ãã£ã¬ã¯ããªã¨ã£f使ç¨ãã ãã£ã¬ã¯ããªã®ååã ä¾ãã°ã<literal>public_html</literal> ã¨ãªãã¾ãã</para> </listitem> @@ -990,6 +990,73 @@ <listitem> <para> ç¶ç¶çãªæ¥ç¶ãå«ã Postgres æ¥ç¶ã®ããã»ã¹æ¯ã®æå¤§æ°ã + </para> + </listitem> + </varlistentry> + + </variablelist> + </sect2> + + <sect2 id="ini.sect.sesam"> + <title>SESAM è¨å®ãã£ã¬ã¯ãã£ã</title> + <variablelist> + + <varlistentry id="ini.sesam-oml"> + <term> + <parameter>sesam_oml</parameter> + <type>string</type> + </term> + <listitem> + <para> + ãã¼ãå¯è½ãªSESAMãã©ã¤ãã¢ã¸ã¥ã¼ã«ãå«ãBS2000 PLAM ã©ã¤ãã© + ãªã®ååãSESAM颿°ã使ç¨ããéã«å¿ è¦ãBS2000 PLAMã©ã¤ãã©ãªã¯ã + ACCESS=READ,SHARE=YES ã«è¨å®ããå¿ è¦ãããã¾ããããã¯ãApache + ãµã¼ãã®ã¦ã¼ã¶IDã«ããèªã¿è¾¼ã¿å¯è½ã¨ããå¿ è¦ãããããã§ãã + </para> + </listitem> + </varlistentry> + + <varlistentry id="ini.sesam-configfile"> + <term> + <parameter>sesam_configfile</parameter> + <type>string</type> + </term> + <listitem> + <para> + SESAMã¢ããªã±ã¼ã·ã§ã³è¨å®ãã¡ã¤ã«ã®ååãSESAM颿°ã使ç¨ããé + ã«å¿ è¦ãBS2000 ãã¡ã¤ã«ã¯ãApacheã®ã¦ã¼ã¶IDã«ããèªã¿è¾¼ã¿å¯ã + ããå¿ è¦ãããã¾ãã + </para> + <para> + ã¢ããªã±ã¼ã·ã§ã³è¨å®ãã¡ã¤ã«ã¯ãéå¸¸ãæ¬¡ã®ãããªè¨å®ãæãã¦ã + ã¾ãã(SESAMãªãã¡ã¬ã³ã¹ãåç §) + <informalexample> + <programlisting role="bs2000"> +CNF=B +NAM=K +NOTYPE + </programlisting> + </informalexample> + </para> + </listitem> + </varlistentry> + + <varlistentry id="ini.sesam-messagecatalog"> + <term> + <parameter>sesam_messagecatalog</parameter> + <type>string</type> + </term> + <listitem> + <para> + SESAMã¡ãã»ã¼ã¸ã«ã¿ãã°ãã¡ã¤ã«ã®ååãå¤ãã®å ´åããã®ãã£ã¬ + ã¯ãã£ãã¯ä¸è¦ã§ããSESAMã¡ãã»ã¼ã¸ãã¡ã¤ã«ãã·ã¹ãã ã®BS2000 + ã¡ãã»ã¼ã¸ãã¡ã¤ã«ãã¼ãã«ã«ã¤ã³ã¹ãã¼ã«ããã¦ããªãå ´åã«ã®ã¿ + ãã®ãã£ã¬ã¯ãã£ããè¨å®ãããã¨ãå¯è½ã§ãã + </para> + <para> + ã¡ãã»ã¼ã¸ã«ã¿ãã°ã¯ãACCESS=READ,SHARE=YES ã«è¨å®ããå¿ è¦ãã + ãã¾ããããã¯ãApache ãµã¼ãã®ã¦ã¼ã¶IDããèªã¿è¾¼ã¿å¯è½ã¨ãã + å¿ è¦ãããã¾ãã </para> </listitem> </varlistentry> Index: phpdoc/ja/functions/sesam.xml diff -u phpdoc/ja/functions/sesam.xml:1.1 phpdoc/ja/functions/sesam.xml:1.2 --- phpdoc/ja/functions/sesam.xml:1.1 Thu Dec 14 13:47:44 2000 +++ phpdoc/ja/functions/sesam.xml Sat Dec 16 07:00:51 2000 @@ -1,236 +1,258 @@ <reference id="ref.sesam"> - <title>SESAM database functions</title> + <title>SESAM ãã¼ã¿ãã¼ã¹é¢æ°</title> <titleabbrev>SESAM</titleabbrev> <partintro> <para> - SESAM/SQL-Server is a mainframe database system, developed by - Fujitsu Siemens Computers, Germany. It runs on high-end - mainframe servers using the operating system BS2000/OSD. + SESAM/SQL-Server ã¯ããã¤ãã® Fujitsu Siemens ã³ã³ãã¥ã¼ã¿ã«ããé + çºãããã¡ã¤ã³ãã¬ã¼ã ä¸ã®ãã¼ã¿ãã¼ã¹ã·ã¹ãã ã§ãããã®ãã¼ã¿ãã¼ + ã¹ã¯ããã¤ã¨ã³ãã®ã¡ã¤ã³ãã¬ã¼ã ä¸ã§ãªãã¬ã¼ãã£ã³ã°ã·ã¹ãã + BS2000/OSD ã使ç¨ãã¦åä½ãã¾ãã </para> <para> - In numerous productive BS2000 installations, SESAM/SQL-Server - has proven ... + æ°å¤ãã®BS2000ã·ã¹ãã ã«ã¦å®éç¨ãããSESAM/SQL-Server ã¯ä»¥ä¸ã®äº + é ãå®è¨¼ãã¦ãã¾ãã <itemizedlist> - <listitem><simpara>the ease of use of Java-, Web- and client/server - connectivity,</simpara></listitem> - <listitem><simpara>the capability to work with an availability of more - than 99.99%,</simpara></listitem> - <listitem><simpara>the ability to manage tens and even hundreds of - thousands of users.</simpara></listitem> + <listitem> + <simpara> + JavaãWeb ãã¼ã¹ã®ã¯ã©ã¤ã¢ã³ã/ãµã¼ãæ¥ç¶ãç°¡åã«å¯è½ + </simpara> + </listitem> + <listitem> + <simpara> + 99.99% 以ä¸ã®ç¢ºçã§æå¹ã«åä½ããè½å + </simpara> + </listitem> + <listitem> + <simpara> + æ°ä¸ããæ°åä¸ã®ã¦ã¼ã¶ã管çããè½å + </simpara> + </listitem> </itemizedlist> </para> <para> - Now there is a PHP3 SESAM interface available which allows - database operations via PHP-scripts. + PHPã¹ã¯ãªããã«ãããã¼ã¿ãã¼ã¹å¦çãå¯è½ã«ãã PHP3 SESAM ã¤ã³ã¿ã¼ + ãã§ã¼ã¹ãå©ç¨å¯è½ã§ãã </para> <note> - <title>Configuration notes</title> + <title>è¨å®ä¸ã®æ³¨æ</title> <para> - There is no standalone support for the PHP SESAM interface, - it works only as an integrated Apache module. In the Apache PHP - module, this <link linkend="ini.sect.sesam">SESAM interface is - configured</link> using Apache directives. + PHP SESAMã¤ã³ã¿ãã§ã¼ã¹ã¯ãã¹ã¿ã³ãã¢ãã³çããµãã¼ããã¦ãã¾ããã + Apache ã¢ã¸ã¥ã¼ã«çã¨ãã¦çµã¿è¾¼ã¾ããå ´åã®ã¿åä½ãã¾ããApache + PHP ã¢ã¸ã¥ã¼ã«ã«ããã¦ã<link linkend="ini.sect.sesam">SESAMã¤ã³ + ã¿ãã§ã¼ã¹</link> ã¯ãApache ç¨ãã£ã¬ã¯ãã£ãã«ããè¨å®ããã¾ãã <table> - <title>SESAM Configuration directives</title> + <title>SESAM è¨å®ç¨ãã£ã¬ã¯ãã£ã</title> <tgroup cols="2"> <thead> <row> - <entry>Directive</entry> - <entry>Meaning</entry> + <entry>ãã£ã¬ã¯ãã£ã</entry> + <entry>æå³</entry> </row> </thead> <tbody> <row> <entry><literal>php3_sesam_oml</literal></entry> - <entry>Name of BS2000 PLAM library containing the - loadable SESAM driver modules. - Required for using SESAM functions. - <para> - Example: - <informalexample> - <programlisting role="apache"> + <entry> + ãã¼ãå¯è½ãªSESAMãã©ã¤ãã¢ã¸ã¥ã¼ã«ãå«ã¾ããBS2000 PLAM ã© + ã¤ãã©ãªã®ååãSESAM颿°ã使ç¨ããããã«å¿ è¦ã + <para> + ä¾: + <informalexample> + <programlisting role="apache"> php3_sesam_oml $.SYSLNK.SESAM-SQL.030</programlisting> - </informalexample> - </para> - </entry> - </row> - <row> - <entry><literal>php3_sesam_configfile</literal></entry> - <entry>Name of SESAM application configuration file. - Required for using SESAM functions. - <para> - Example: - <informalexample> - <programlisting role="apache"> -php3_sesam_configfile $SESAM.SESAM.CONF.AW</programlisting></informalexample> - It will usually contain a configuration like (see SESAM - reference manual): - <informalexample> - <programlisting role="bs2000"> + </informalexample> + </para> + </entry> + </row> + <row> + <entry><literal>php3_sesam_configfile</literal></entry> + <entry> + SESAM + SESAMã¢ããªã±ã¼ã·ã§ã³è¨å®ãã¡ã¤ã«ã®ååãSESAM颿°ã使ç¨ãã + éã«å¿ è¦ã + <para> + ä¾: + <informalexample> + <programlisting role="apache"> +php3_sesam_configfile $SESAM.SESAM.CONF.AW + </programlisting> + </informalexample> + éå¸¸ãæ¬¡ã®ãããªè¨å®ãå«ã¾ãã¾ãã(SESAMãªãã¡ã¬ã³ã¹ãã㥠+ ã¢ã«ãåç §) + <informalexample> + <programlisting role="bs2000"> CNF=B NAM=K -NOTYPE</programlisting> - </informalexample> - </para> - </entry> +NOTYPE + </programlisting> + </informalexample> + </para> + </entry> </row> <row> <entry><literal>php3_sesam_messagecatalog</literal></entry> - <entry>Name of SESAM message catalog file. - In most cases, this directive is not neccessary. Only if the - SESAM message file is not installed in the system's BS2000 - message file table, it can be set with this directive. - <para> - Example: - <informalexample> - <programlisting role="apache"> -php3_sesam_messagecatalog $.SYSMES.SESAM-SQL.030</programlisting> - </informalexample> - </para> - </entry> + <entry> + SESAMã¡ãã»ã¼ã¸ã«ã¿ãã°ãã¡ã¤ã«ã®ååãå¤ãã®å ´åããã®ã㣠+ ã¬ã¯ãã£ãã¯ä¸è¦ã§ããSESAMã¡ãã»ã¼ã¸ãã¡ã¤ã«ãã·ã¹ãã + BS2000ã¡ãã»ã¼ã¸ãã¡ã¤ã«ã¦ã¼ã¶ãã«ã¤ã³ã¹ãã¼ã«ããã¦ããªãå ´ + åã«ã®ã¿ããã®ãã£ã¬ã¯ãã£ããè¨å®ãããã¨ãå¯è½ã§ãã + <para> + ä¾: + <informalexample> + <programlisting role="apache"> +php3_sesam_messagecatalog $.SYSMES.SESAM-SQL.030 + </programlisting> + </informalexample> + </para> + </entry> </row> </tbody> </tgroup> </table> </para> <para> - In addition to the configuration of the PHP/SESAM interface, - you have to configure the SESAM-Database server itself on your - mainframe as usual. That means: + PHP/SESAMã¤ã³ã¿ã¼ãã§ã¼ã¹ã®è¨å®ã«å ãã¦ãã¡ã¤ã³ãã¬ã¼ã ä¸ã®SESAM + ãã¼ã¿ãã¼ã¹ãµã¼ãã¼èªä½ãè¨å®ããå¿ è¦ãããã¾ããããã¯ã次ã®ã + ãã«ãªãã¾ãã <itemizedlist> - <listitem><simpara>starting the SESAM database handler (DBH), and</simpara></listitem> - <listitem><simpara>connecting the databases with the SESAM database - handler</simpara></listitem> + <listitem> + <simpara> + SESAMãã¼ã¿ãã¼ã¹ãã³ãã©(DBH)ãéå§ + </simpara> + </listitem> + <listitem> + <simpara> + SESAMãã¼ã¿ãã¼ã¹ãã³ãã©ãæå®ãã¦ããã¼ã¿ãã¼ã¹ã«æ¥ç¶ + </simpara> + </listitem> </itemizedlist> </para> + <para> + PHPã¹ã¯ãªããã¨ãã¼ã¿ãã¼ã¹ãã³ãã©ã®éã®æ¥ç¶ãå¾ãã«ã¯ã鏿ãã + SESAMè¨å®ãã¡ã¤ã«ã®ãã©ã¡ã¼ã¿ <literal>CNF</literal> ããã³ + <literal>NAM</literal> ãå®è¡ä¸ã®ãã¼ã¿ãã¼ã¹ãã³ãã©ã®IDã«ä¸è´ã + ã¦ããå¿ è¦ãããã¾ãã + </para> + <para> + 忣åãã¼ã¿ãã¼ã¹ã®å ´åããã¹ãããã³ãã¼ã¿ãã¼ã¹åãæããåé + ãã¼ãã«ãæå®ãã¦SESAM/SQL-DCNã¨ã¼ã¸ã§ã³ããéå§ããå¿ è¦ãããã¾ + ãã + </para> <para> - To get a connection between a PHP script and the database - handler, the <literal>CNF</literal> and <literal>NAM</literal> - parameters of the selected SESAM configuration file must match - the id of the started database handler. - </para> - <para> - In case of distributed databases you have to start a - SESAM/SQL-DCN agent with the distribution table including the - host and database names. - </para> - <para> - The communication between PHP (running in the POSIX subsystem) - and the database handler (running outside the POSIX subsystem) - is realized by a special driver module called SQLSCI and SESAM - connection modules using common memory. - Because of the common memory access, and because PHP is a - static part of the web server, database accesses are very fast, - as they do not require remote accesses via ODBC, JDBC or UTM. - </para> - <para> - Only a small stub loader (SESMOD) is linked with PHP, and the - SESAM connection modules are pulled in from SESAM's OML PLAM - library. In the <link - linkend="ini.sect.sesam">configuration</link>, you must tell - PHP the name of this PLAM library, and the file link to use for - the SESAM configuration file (As of SESAM V3.0, SQLSCI is - available in the SESAM Tool Library, which is part of the - standard distribution). - </para> - <para> - Because the SQL command quoting for single quotes uses duplicated - single quotes (as opposed to a single quote preceded by a - backslash, used in some other databases), it is advisable to - set the PHP configuration directives <link + (POSIXãµãã·ã¹ãã ã§å®è¡ããã¦ãã)PHPã¨(POSIXãµãã·ã¹ãã ã®å¤ã§ + å®è¡ããã¦ãã)ãã¼ã¿ãã¼ã¹ãã³ãã©ã®éã®éä¿¡ã¯ãSQLSCIã¨ããåå + ã®ç¹å¥ãªãã©ã¤ãã¢ã¸ã¥ã¼ã«ã¨é常ã¡ã¢ãªã使ç¨ããSESAMæ¥ç¶ã¢ã¸ã¥ã¼ + ã«ã§å®ç¾ããã¾ããé常ã¡ã¢ãªã¢ã¯ã»ã¹ã®ãããããã¦ãPHPã¯Webãµã¼ + ãã®éçé¨åã§ãããããODBCãJDBCãUTMçµç±ã®ãªã¢ã¼ãã¢ã¯ã»ã¹ã¯ä¸ + è¦ã§ããããã¼ã¿ãã¼ã¹ã¸ã®ã¢ã¯ã»ã¹ã¯é常ã«é«éã§ãã + </para> + <para> + ã¹ã¢ã¼ã«ã¹ã¿ããã¼ã(SESMOD)ã®ã¿ãPHPã«ãªã³ã¯ããã¦ãããSESAMæ¥ + ç¶ã¢ã¸ã¥ã¼ã«ã¯SESAMã®OML PLAMã©ã¤ãã©ãªãããã¼ãããã¾ãã + <link linkend="ini.sect.sesam">è¨å®</link>ã®éããã®PLAMã©ã¤ãã© + ãªã®ååã¨SESAMè¨å®ãã¡ã¤ã«ã使ç¨ããããã®ãã¡ã¤ã«ãªã³ã¯ãPHPã« + æå®ããå¿ è¦ãããã¾ãã(SESAM V3.0 ã«ããã¦ãSQLSCI ã¯æ¨æºé å¸ã® + SESAMãã¼ã«ã©ã¤ãã©ãªããå ¥æå¯è½ã§ã) + </para> + <para> + SQLã³ãã³ãã«ãããã·ã³ã°ã«ã¯ãªã¼ãã®ã¯ãªã¼ãã¯ã(ã·ã³ã°ã«ã¯ãªã¼ + ãã®åã«ããã¯ã¹ã©ãã·ã¥ãä»å ããã®ã§ã¯ãªãã)ã·ã³ã°ã«ã¯ãªã¼ãã + 2ã¤éãã¦ä½¿ç¨ãããããSESAMã¤ã³ã¿ã¼ãã§ã¼ã¹ã使ç¨ããå ¨ã¦ã®PHPã¹ + ã¯ãªããã«ã¤ãã¦ãPHPè¨å®ãã£ã¬ã¯ãã£ãã§ <link linkend="ini.magic-quotes-gpc"><literal>php3_magic_quotes_gpc</literal></link> - and <link - linkend="ini.magic-quotes-sybase"><literal>php3_magic_quotes_sybase</literal></link> - to <literal>On</literal> for all PHP scripts using the SESAM - interface. + ããã³ <link linkend="ini.magic-quotes-sybase"> + <literal>php3_magic_quotes_sybase</literal></link> ã + <literal>On</literal> ã«ãã¦ããæ¹ãè³¢æã§ãããã </para> </note> <note> - <title>Runtime considerations</title> + <title>å®è¡æã®èæ ®</title> <para> - Because of limitations of the BS2000 process model, the driver can - be loaded only after the Apache server has forked off its server child - processes. This will slightly slow down the initial SESAM request - of each child, but subsequent accesses will respond at full speed. - </para> - <para> - When explicitly defining a Message Catalog for SESAM, that - catalog will be loaded each time the driver is loaded (i.e., at - the initial SESAM request). The BS2000 operating system prints - a message after successful load of the message catalog, which - will be sent to Apache's error_log file. BS2000 currently does - not allow suppression of this message, it will slowly fill up - the log. - </para> - <para> - Make sure that the SESAM OML PLAM library and SESAM - configuration file are readable by the user id running the web server. - Otherwise, the server will be unable to load the driver, and - will not allow to call any SESAM functions. Also, access to - the database must be granted to the user id under which the - Apache server is running. Otherwise, connections to the - SESAM database handler will fail. + BS2000 ã¢ãã«ã®å¶éã®ããã«ããã©ã¤ãã¯ãApache ãµã¼ãããã®ãµã¼ + ãã®åããã»ã¹ããã©ã¼ã¯ããå¾ã«ã®ã¿ãã¼ãå¯è½ã¨ãªãã¾ããããã¯ã + ååããã»ã¹ã®æåã®SESAMãªã¯ã¨ã¹ããè¥å¹²é ããã¾ããããã®å¾ã®ã¢ + ã¯ã»ã¹ã¸ã®å¿çã¯æé«é度ã¨ãªãã¾ãã + </para> + <para> + SESAMç¨ã®æç¤ºçã«ã¡ãã»ã¼ã¸ã«ã¿ãã°ãå®ç¾©ããå ´åããã®ã«ã¿ãã°ã¯ + ãã©ã¤ãããã¼ãããã度(ããªãã¡ãæåã®SESAMãªã¯ã¨ã¹ãæã«)ã«ãã¼ + ãããã¾ããBS2000 ãªãã¬ã¼ãã£ã³ã°ã·ã¹ãã ã¯ã¡ãã»ã¼ã¸ã«ã¿ãã°ã® + ãã¼ãã«æåããå¾ã«ã¡ãã»ã¼ã¸ãåºåãã¾ãããã®ã¡ãã»ã¼ã¸ã¯ã + Apacheã®error_logãã¡ã¤ã«ã«éä¿¡ããã¾ããBS2000ã¯ç¾å¨ããã®ã¡ãã»ã¼ + ã¸ã®åºåã忢ãããã¨ãã§ãã¾ããããã®ããããã°ã段ã ã¨åã㦠+ ããã¾ãã + </para> + <para> + SESAM OML PLAM ã©ã¤ãã©ãªã¨SESAMè¨å®ãã¡ã¤ã«ã¯ãWebãµã¼ããå®è¡ã + ã¦ããã¦ã¼ã¶IDããèªã¿è¾¼ã¿å¯è½ã§ãããã¨ã確èªãã¦ä¸ãããããã§ + ãªãå ´åããµã¼ãã¯ãã©ã¤ãããã¼ããããã¨ãã§ãããSESAM颿°ãã³ã¼ + ã«ãããã¨ãã§ãã¾ãããã¾ããApacheãµã¼ããå®è¡ãã¦ããã¦ã¼ã¶ID + ã«ãã¼ã¿ãã¼ã¹ã¸ã®ã¢ã¯ã»ã¹ã許å¯ããã¦ããå¿ è¦ãããã¾ããããã§ + ãªãå ´åãSESAMãã¼ã¿ãã¼ã¹ãã³ãã©ã¸ã®æ¥ç¶ã¯å¤±æãã¾ãã </para> </note> <note> - <title>Cursor Types</title> - <para> - The result cursors which are allocated for SQL "select type" - queries can be either "sequential" or "scrollable". Because - of the larger memory overhead needed by "scrollable" cursors, - the default is "sequential". - </para> + <title>ã«ã¼ã½ã«å</title> <para> - When using "scrollable" cursors, the cursor can be freely - positioned on the result set. For each "scrollable" query, - there are global default values for the scrolling type - (initialized to: <literal>SESAM_SEEK_NEXT</literal>) and - the scrolling offset which can either be set once - by <function>sesam_seek_row</function> or - each time when fetching a row using - <function>sesam_fetch_row</function>. When fetching a row - using a "scrollable" cursor, the following post-processing is - done for the global default values for the scrolling type - and scrolling offset: + SQL "select å"ã¯ã¨ãªç¨ã«ç¢ºä¿ãããçµæã«ã¼ã½ã«ã¯ã"sequential"ã¾ + ãã¯"scrollable"ã®ã©ã¡ããã¨ãããã¨ãå¯è½ã§ãã"scrollable"ã«ã¼ + ã½ã«ã§å¿ è¦ãªã¡ã¢ãªãªã¼ããããã¯ãã大ãããããããã©ã«ã㯠+ "sequential" ã§ãã + </para> + <para> + "scrollable"ã«ã¼ã½ã«ã使ç¨ããå ´åãã«ã¼ã½ã«ã¯çµæéåã®ä¸ã§èªç± + ã«ç§»åå¯è½ã§ããå"scrollable"ã¯ã¨ãªã«ã¤ãã¦ãã¹ã¯ãã¼ã«åã®ã°ãã¼ + ãã«ãªããã©ã«ãå¤(<literal>SESAM_SEEK_NEXT</literal>ã«åæåãã + ã¾ã)ããããã¹ã¯ãã¼ã«ãªãã»ããã¯ã + <function>sesam_seek_row</function> ã«ããä¸åè¨å®ããããã + <function>sesam_fetch_row</function> ã«ããã¬ã³ã¼ããåå¾ãã度㫠+ è¨å®ããããã®ã©ã¡ããã§ãã"scrollable"ã«ã¼ã½ã«ã使ç¨ãã¦ã¬ã³ã¼ + ããåå¾ããéã«ãã¹ã¯ãã¼ã«åããã³ã¹ã¯ãã¼ã«ãªãã»ããã®ã°ãã¼ + ãã«ããã©ã«ãå¤ã«ã¤ãã¦æ¬¡ã®ãããªãã¹ãå¦çè¡ããã¾ãã <table> - <title>Scrolled Cursor Post-Processing</title> + <title>ã¹ã¯ãã¼ã«å¾ã®ã«ã¼ã½ã«ã«é¢ãããã¹ãå¦ç</title> <tgroup cols="2"> <thead> <row> - <entry>Scroll Type</entry> - <entry>Action</entry> + <entry>ã¹ã¯ãã¼ã«å</entry> + <entry>åä½</entry> </row> </thead> <tbody> <row> - <entry><literal>SESAM_SEEK_NEXT</literal></entry> - <entry>none</entry> + <entry><literal>SESAM_SEEK_NEXT</literal></entry> + <entry>ãªã</entry> </row> <row> - <entry><literal>SESAM_SEEK_PRIOR</literal></entry> - <entry>none</entry> + <entry><literal>SESAM_SEEK_PRIOR</literal></entry> + <entry>ãªã</entry> </row> <row> - <entry><literal>SESAM_SEEK_FIRST</literal></entry> - <entry>set scroll type to - <literal>SESAM_SEEK_NEXT</literal></entry> + <entry><literal>SESAM_SEEK_FIRST</literal></entry> + <entry> + ã¹ã¯ãã¼ã«åã <literal>SESAM_SEEK_NEXT</literal> ã«è¨å® + </entry> </row> <row> - <entry><literal>SESAM_SEEK_LAST</literal></entry> - <entry>set scroll type to - <literal>SESAM_SEEK_PRIOR</literal></entry> + <entry><literal>SESAM_SEEK_LAST</literal></entry> + <entry> + ã¹ã¯ãã¼ã«åã <literal>SESAM_SEEK_PRIOR</literal> ã«è¨å® + </entry> </row> <row> - <entry><literal>SESAM_SEEK_ABSOLUTE</literal></entry> - <entry>Auto-Increment internal offset value</entry> + <entry><literal>SESAM_SEEK_ABSOLUTE</literal></entry> + <entry> + å é¨ãªãã»ããå¤ãèªåçã«å¢å ããã + </entry> </row> <row> - <entry><literal>SESAM_SEEK_RELATIVE</literal></entry> - <entry>none. (maintain global default - <parameter>offset</parameter> value, which allows - for, e.g., fetching each 10th row backwards) - </entry> + <entry><literal>SESAM_SEEK_RELATIVE</literal></entry> + <entry> + ãªãã(ã°ãã¼ãã«ããã©ã«ãå¤ <parameter>offset</parameter> + ãä¿æãããããã«ãããä¾ãã°ã10ååã®ã¬ã³ã¼ããåå¾ãã㨠+ ãã£ããã¨ãå¯è½ã«ãªãã¾ã) + </entry> </row> </tbody> </tgroup> @@ -238,57 +260,54 @@ </para> </note> <note> - <title> - Porting note - </title> + <title>ç§»æ¤æã®æ³¨æ</title> <para> - Because in the PHP world it is natural to start indexes at zero - (rather than 1), some adaptions have been made to the SESAM - interface: whenever an indexed array is starting with index 1 - in the native SESAM interface, the PHP interface uses - index 0 as a starting point. E.g., when retrieving columns with - <function>sesam_fetch_row</function>, the first column has the - index 0, and the subsequent columns have indexes up to (but not - including) the column count ($array["count"]). - When porting SESAM applications from other high level languages - to PHP, be aware of this changed interface. Where appropriate, - the description of the respective php sesam functions include a - note that the index is zero based. + PHPã§ã¯ãé åã®æ·»åã¯(1ããã)0ããå§ã¾ãã®ãæ®éãªãããããã¤ã + ã®èª¿æ´ãSESAMã¤ã³ã¿ã¼ãã§ã¼ã¹ã§è¡ããã¦ãã¾ããããæ·»åé åããã¼ + ãã£ãã®SESAMã¤ã³ã¿ã¼ãã§ã¼ã¹ã§æ·»å1ããå§ã¾ãéã«ã¯ãPHPã¤ã³ã¿ã¼ + ãã§ã¼ã¹ã§ã¯æåã®æ·»åã¨ãã¦0ã使ç¨ãã¾ããä¾ãã°ã + <function>sesam_fetch_row</function> ã§ã«ã©ã ãåå¾ããéã«ãæå + ã®ã«ã©ã ã®æ·»åã¯0ã§ããããã®å¾ã®ã«ã©ã çªå·ã¯ã«ã©ã æ° + ($array["count"])ã«éããã¾ã§(ã«ã©ã æ°ã¯å«ã¾ã)å¢ãã¦ããã¾ãã + SESAMã¢ããªã±ã¼ã·ã§ã³ãä»ã®é«ç´è¨èªããPHPã«ç§»æ¤ããéã«ã¯ããã® + ã¤ã³ã¿ã¼ãã§ã¼ã¹ä¸ã®å¤æ´ã«çæããå¿ è¦ãããã¾ããåPHP sesam é¢ + æ°ã®èª¬æã®é©åãªå ´æã«æ·»åã0ããå§ã¾ãã¨ããæ³¨æãå«ã¾ãã¦ãã¾ãã </para> </note> <note> - <title>Security concerns</title> + <title>ã»ãã¥ãªãã£ã®èæ ®</title> <para> - When allowing access to the SESAM databases, the web server - user should only have as little privileges as possible. For most - databases, only read access privilege should be granted. - Depending on your usage scenario, add more access rights as - you see fit. Never allow full control to any database for - any user from the 'net! Restrict access to php scripts - which must administer the database by using password control - and/or SSL security. + SESAMãã¼ã¿ãã¼ã¹ã¸ã®ã¢ã¯ã»ã¹ãå¯è½ãªå ´åãWebãµã¼ãã®ã¦ã¼ã¶ã¯ã + å¯è½ãªéãå°ããªæ¨©éã®ã¿ãæãã¦ããå¿ è¦ãããã¾ããå¤ãã®ãã¼ã¿ + ãã¼ã¹ã§ã¯è¨±å¯ããå¿ è¦ãããã®ã¯èªã¿è¾¼ã¿æ¨©éã®ã¿ã§ãã使ç¨ããè¨ + å®ã«å¿ãã¦ç¶æ³ã«è¦åã£ãã¢ã¯ã»ã¹æ¨©éã追å ãã¦ä¸ãããæ±ºãã¦ãã + ãããã®å ¨ã¦ã®ã¦ã¼ã¶ã«å ¨ã¦ã®ãã¼ã¿ãã¼ã¹ã¸ã®å®å ¨ãªå¶å¾¡æ¨©ã許å¯ã + ãªãã§ä¸ãã! ãã¼ã¿ãã¼ã¹ã管çããPHPã¹ã¯ãªããã¸ã®ã¢ã¯ã»ã¹å¶é + ã¯ããã¹ã¯ã¼ãå¶éã¾ãã¯SSLã»ãã¥ãªãã£ã«ããå¶éãã¦ä¸ããã </para> </note> <note> - <title>Migration from other SQL databases</title> + <title>ä»ã®SQLãã¼ã¿ãã¼ã¹ããã®ç§»è¡</title> <para> - No two SQL dialects are ever 100% compatible. When porting - SQL applications from other database interfaces to SESAM, - some adaption may be required. The following typical - differences should be noted: + SQLã«ã¯æ¹è¨ããããã100%äºæã§ã¯ããã¾ãããä»ã®ãã¼ã¿ãã¼ã¹ã¤ã³ + ã¿ã¼ãã§ã¼ã¹ããSQLã¢ããªã±ã¼ã·ã§ã³ãSESAMã«ç§»æ¤ããéã«ã¯ããã + ã¤ãã®ä¿®æ£ãå¿ è¦ã«ãªãå¯è½æ§ãããã¾ããæ¬¡ã®ãããªå ¸åçãªå·®ç°ã« + 注æããå¿ è¦ãããã¾ãã <itemizedlist> <listitem> - <simpara>Vendor specific data types</simpara> - <simpara>Some vendor specific data types may have to be - replaced by standard SQL data types - (e.g., <literal>TEXT</literal> could be replaced by - <literal>VARCHAR(max. size)</literal>). + <simpara>ãã³ãå°ç¨ã®ãã¼ã¿å</simpara> + <simpara> + ããã¤ãã®ãã³ãå°ç¨ã®ãã¼ã¿åã¯ãæ¨æºçãªSQLãã¼ã¿åã§ç½®æã + ãå¿ è¦ãããã¾ãã(ä¾ãã°ã<literal>TEXT</literal> 㯠+ <literal>VARCHAR(max. size)</literal>ã§ç½®æå¯è½ã§ãã) </simpara> </listitem> <listitem> <simpara>Keywords as SQL identifiers</simpara> - <simpara>In SESAM (as in standard SQL), such identifiers must - be enclosed in double quotes (or renamed).</simpara> + <simpara> + In SESAM (as in standard SQL), such identifiers must + be enclosed in double quotes (or renamed). + </simpara> </listitem> <listitem> <simpara>Display length in data types</simpara> @@ -314,38 +333,42 @@ </listitem> <listitem> <simpara><command>int ... DEFAULT '0000'</command></simpara> - <simpara>Numeric variables must not be initialized with - string constants. Use <command>DEFAULT 0</command> - instead. To initialize variables of the datetime - SQL data types, the initialization string must be - prefixed with the respective type keyword, as in: - <literal> CREATE TABLE exmpl ( + <simpara> + Numeric variables must not be initialized with + string constants. Use <command>DEFAULT 0</command> + instead. To initialize variables of the datetime + SQL data types, the initialization string must be + prefixed with the respective type keyword, as in: + <literal> CREATE TABLE exmpl ( xtime timestamp(3) DEFAULT TIMESTAMP '1970-01-01 00:00:00.000' NOT NULL - ); </literal> + ); + </literal> </simpara> </listitem> <listitem> <simpara><command>$count = xxxx_num_rows();</command></simpara> - <simpara>Some databases promise to guess/estimate the - number of the rows in a query result, even though - the returned value is grossly incorrect. SESAM - does not know the number of rows in a query result - before actually fetching them. If you REALLY need - the count, try <command>SELECT COUNT(...) WHERE - ...</command>, it will tell you the number of hits. - A second query will (hopefully) return the results. + <simpara> + Some databases promise to guess/estimate the + number of the rows in a query result, even though + the returned value is grossly incorrect. SESAM + does not know the number of rows in a query result + before actually fetching them. If you REALLY need + the count, try <command>SELECT COUNT(...) WHERE + ...</command>, it will tell you the number of hits. + A second query will (hopefully) return the results. </simpara> </listitem> <listitem> <simpara><command>DROP TABLE thename;</command></simpara> - <simpara>In SESAM, in the <command>DROP TABLE</command> - command, the table name must be either followed by - the keyword <literal>RESTRICT</literal> or - <literal>CASCADE</literal>. When specifying - <literal>RESTRICT</literal>, an error is returned if - there are dependent objects (e.g., VIEWs), while with - <literal>CASCADE</literal>, dependent objects will be - deleted along with the specified table. + <simpara> + In SESAM, in the <command>DROP TABLE</command> + command, the table name must be either followed by + the keyword <literal>RESTRICT</literal> or + <literal>CASCADE</literal>. When specifying + <literal>RESTRICT</literal>, an error is returned if + there are dependent objects (e.g., VIEWs), while with + <literal>CASCADE</literal>, dependent objects will be + deleted along with the specified table. </simpara> </listitem> </itemizedlist> @@ -449,10 +472,10 @@ <refentry id="function.sesam-connect"> <refnamediv> <refname>sesam_connect</refname> - <refpurpose>Open SESAM database connection</refpurpose> + <refpurpose>SESAM ãã¼ã¿ãã¼ã¹æ¥ç¶ããªã¼ãã³ãã</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>boolean <function>sesam_connect</function></funcdef> @@ -513,7 +536,7 @@ <refpurpose>Detach from SESAM connection</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>boolean <function>sesam_disconnect</function></funcdef> @@ -562,7 +585,7 @@ <refpurpose>Set SESAM transaction parameters</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>boolean <function>sesam_settransaction</function></funcdef> @@ -676,7 +699,7 @@ <refpurpose>Commit pending updates to the SESAM database</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>boolean <function>sesam_commit</function></funcdef> @@ -725,7 +748,7 @@ <refpurpose>Discard any pending updates to the SESAM database</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>boolean <function>sesam_rollback</function></funcdef> @@ -773,7 +796,7 @@ <refpurpose>Execute an "immediate" SQL-statement</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>string <function>sesam_execimm</function></funcdef> @@ -831,7 +854,7 @@ <refpurpose>Perform a SESAM SQL query and prepare the result</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>string <function>sesam_query</function></funcdef> @@ -943,7 +966,7 @@ <refpurpose>Return the number of fields/columns in a result set</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>int <function>sesam_num_fields</function></funcdef> @@ -979,7 +1002,7 @@ </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>int <function>sesam_field_name</function></funcdef> @@ -1012,7 +1035,7 @@ <refpurpose>Return status information for last SESAM call</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>array <function>sesam_diagnostic</function></funcdef> @@ -1154,10 +1177,10 @@ <refentry id="function.sesam-fetch-result"> <refnamediv> <refname>sesam_fetch_result</refname> - <refpurpose>Return all or part of a query result</refpurpose> + <refpurpose>ã¯ã¨ãªçµæã®å ¨ã¦ãããã¯ä¸é¨ãè¿ã</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>mixed <function>sesam_fetch_result</function></funcdef> @@ -1175,13 +1198,13 @@ Note that both row and column indexes are zero-based. <table> <title> - Mixed result set returned by <function>sesam_fetch_result</function> + <function>sesam_fetch_result</function>ã«ããè¿ããã種ã ã®çµæéå </title> <tgroup cols="2"> <thead> <row> - <entry>Array Element</entry> - <entry>Contents</entry> + <entry>é åè¦ç´ </entry> + <entry>宿°</entry> </row> </thead> <tbody> @@ -1248,7 +1271,7 @@ <refpurpose>Get number of rows affected by an immediate query</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>int <function>sesam_affected_rows</function></funcdef> @@ -1297,7 +1320,7 @@ <refpurpose>Returns error message of last SESAM call</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>string <function>sesam_errormsg</function></funcdef> @@ -1329,7 +1352,7 @@ </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>array <function>sesam_field_array</function></funcdef> @@ -1521,7 +1544,7 @@ <refpurpose>Fetch one row as an array</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>array <function>sesam_fetch_row</function></funcdef> @@ -1691,7 +1714,7 @@ <refpurpose>Fetch one row as an associative array</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>array <function>sesam_fetch_array</function></funcdef> @@ -1808,11 +1831,11 @@ <refnamediv> <refname>sesam_seek_row</refname> <refpurpose> - Set scrollable cursor mode for subsequent fetches + é£ç¶çã«åå¾ããéã«ã¹ã¯ãã¼ã«å¯è½ãªã«ã¼ã½ã«ã¢ã¼ãã«è¨å®ãã </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>boolean <function>sesam_seek_row</function></funcdef> @@ -1824,9 +1847,9 @@ </funcprototype> </funcsynopsis> <para> - <parameter>result_id</parameter> is a valid result id (select - type queries only, and only if a "scrollable" cursor was - requested when calling <function>sesam_query</function>). + <parameter>result_id</parameter> ã¯æå¹ãªçµæIDã§ãã(select + åã®ã¯ã¨ãªã§ããã¤ã<function>sesam_query</function>ãã³ã¼ã« + ããéã«"ã¹ã¯ãã¼ã«å¯è½ãª"ã«ã¼ã½ã«ãè¦æ±ãããå ´åã®ã¿) </para> <para> <parameter>whence</parameter> sets the global default value @@ -1905,10 +1928,10 @@ <refentry id="function.sesam-free-result"> <refnamediv> <refname>sesam_free_result</refname> - <refpurpose>Releases resources for the query</refpurpose> + <refpurpose>ã¯ã¨ãªã«é¢ãããªã½ã¼ã¹ãéæ¾ãã</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>int <function>sesam_free_result</function></funcdef> @@ -1916,9 +1939,8 @@ </funcprototype> </funcsynopsis> <para> - Releases resources for the query associated with - <parameter>result_id</parameter>. Returns - <literal>FALSE</literal> on error. + <parameter>result_id</parameter> ãæãã¯ã¨ãªã«é¢ãããªã½ã¼ã¹ãé + æ¾ãã¾ããã¨ã©ã¼ã®å ´åã« <literal>FALSE</literal> ãè¿ãã¾ãã </para> </refsect1> </refentry>
Index: phpdoc/ja/chapters/config.xml diff -u phpdoc/ja/chapters/config.xml:1.7 phpdoc/ja/chapters/config.xml:1.8 --- phpdoc/ja/chapters/config.xml:1.7 Fri Oct 13 08:30:56 2000 +++ phpdoc/ja/chapters/config.xml Sat Dec 16 07:00:51 2000 @@ -614,7 +614,7 @@ </term> <listitem> <para> - PHP ãã¡ã¤ã«ãã¦ã¼ã¶ã¼ã®ãã¼ã ãã£ã¬ã¯ããªã¨ãã¦ä½¿ç¨ãã + PHP ãã¡ã¤ã«ãã¦ã¼ã¶ã¼ã®ãã¼ã ãã£ã¬ã¯ããªã¨ã£f使ç¨ãã ãã£ã¬ã¯ããªã®ååã ä¾ãã°ã<literal>public_html</literal> ã¨ãªãã¾ãã</para> </listitem> @@ -990,6 +990,73 @@ <listitem> <para> ç¶ç¶çãªæ¥ç¶ãå«ã Postgres æ¥ç¶ã®ããã»ã¹æ¯ã®æå¤§æ°ã + </para> + </listitem> + </varlistentry> + + </variablelist> + </sect2> + + <sect2 id="ini.sect.sesam"> + <title>SESAM è¨å®ãã£ã¬ã¯ãã£ã</title> + <variablelist> + + <varlistentry id="ini.sesam-oml"> + <term> + <parameter>sesam_oml</parameter> + <type>string</type> + </term> + <listitem> + <para> + ãã¼ãå¯è½ãªSESAMãã©ã¤ãã¢ã¸ã¥ã¼ã«ãå«ãBS2000 PLAM ã©ã¤ãã© + ãªã®ååãSESAM颿°ã使ç¨ããéã«å¿ è¦ãBS2000 PLAMã©ã¤ãã©ãªã¯ã + ACCESS=READ,SHARE=YES ã«è¨å®ããå¿ è¦ãããã¾ããããã¯ãApache + ãµã¼ãã®ã¦ã¼ã¶IDã«ããèªã¿è¾¼ã¿å¯è½ã¨ããå¿ è¦ãããããã§ãã + </para> + </listitem> + </varlistentry> + + <varlistentry id="ini.sesam-configfile"> + <term> + <parameter>sesam_configfile</parameter> + <type>string</type> + </term> + <listitem> + <para> + SESAMã¢ããªã±ã¼ã·ã§ã³è¨å®ãã¡ã¤ã«ã®ååãSESAM颿°ã使ç¨ããé + ã«å¿ è¦ãBS2000 ãã¡ã¤ã«ã¯ãApacheã®ã¦ã¼ã¶IDã«ããèªã¿è¾¼ã¿å¯ã + ããå¿ è¦ãããã¾ãã + </para> + <para> + ã¢ããªã±ã¼ã·ã§ã³è¨å®ãã¡ã¤ã«ã¯ãéå¸¸ãæ¬¡ã®ãããªè¨å®ãæãã¦ã + ã¾ãã(SESAMãªãã¡ã¬ã³ã¹ãåç §) + <informalexample> + <programlisting role="bs2000"> +CNF=B +NAM=K +NOTYPE + </programlisting> + </informalexample> + </para> + </listitem> + </varlistentry> + + <varlistentry id="ini.sesam-messagecatalog"> + <term> + <parameter>sesam_messagecatalog</parameter> + <type>string</type> + </term> + <listitem> + <para> + SESAMã¡ãã»ã¼ã¸ã«ã¿ãã°ãã¡ã¤ã«ã®ååãå¤ãã®å ´åããã®ãã£ã¬ + ã¯ãã£ãã¯ä¸è¦ã§ããSESAMã¡ãã»ã¼ã¸ãã¡ã¤ã«ãã·ã¹ãã ã®BS2000 + ã¡ãã»ã¼ã¸ãã¡ã¤ã«ãã¼ãã«ã«ã¤ã³ã¹ãã¼ã«ããã¦ããªãå ´åã«ã®ã¿ + ãã®ãã£ã¬ã¯ãã£ããè¨å®ãããã¨ãå¯è½ã§ãã + </para> + <para> + ã¡ãã»ã¼ã¸ã«ã¿ãã°ã¯ãACCESS=READ,SHARE=YES ã«è¨å®ããå¿ è¦ãã + ãã¾ããããã¯ãApache ãµã¼ãã®ã¦ã¼ã¶IDããèªã¿è¾¼ã¿å¯è½ã¨ãã + å¿ è¦ãããã¾ãã </para> </listitem> </varlistentry> Index: phpdoc/ja/functions/sesam.xml diff -u phpdoc/ja/functions/sesam.xml:1.1 phpdoc/ja/functions/sesam.xml:1.2 --- phpdoc/ja/functions/sesam.xml:1.1 Thu Dec 14 13:47:44 2000 +++ phpdoc/ja/functions/sesam.xml Sat Dec 16 07:00:51 2000 @@ -1,236 +1,258 @@ <reference id="ref.sesam"> - <title>SESAM database functions</title> + <title>SESAM ãã¼ã¿ãã¼ã¹é¢æ°</title> <titleabbrev>SESAM</titleabbrev> <partintro> <para> - SESAM/SQL-Server is a mainframe database system, developed by - Fujitsu Siemens Computers, Germany. It runs on high-end - mainframe servers using the operating system BS2000/OSD. + SESAM/SQL-Server ã¯ããã¤ãã® Fujitsu Siemens ã³ã³ãã¥ã¼ã¿ã«ããé + çºãããã¡ã¤ã³ãã¬ã¼ã ä¸ã®ãã¼ã¿ãã¼ã¹ã·ã¹ãã ã§ãããã®ãã¼ã¿ãã¼ + ã¹ã¯ããã¤ã¨ã³ãã®ã¡ã¤ã³ãã¬ã¼ã ä¸ã§ãªãã¬ã¼ãã£ã³ã°ã·ã¹ãã + BS2000/OSD ã使ç¨ãã¦åä½ãã¾ãã </para> <para> - In numerous productive BS2000 installations, SESAM/SQL-Server - has proven ... + æ°å¤ãã®BS2000ã·ã¹ãã ã«ã¦å®éç¨ãããSESAM/SQL-Server ã¯ä»¥ä¸ã®äº + é ãå®è¨¼ãã¦ãã¾ãã <itemizedlist> - <listitem><simpara>the ease of use of Java-, Web- and client/server - connectivity,</simpara></listitem> - <listitem><simpara>the capability to work with an availability of more - than 99.99%,</simpara></listitem> - <listitem><simpara>the ability to manage tens and even hundreds of - thousands of users.</simpara></listitem> + <listitem> + <simpara> + JavaãWeb ãã¼ã¹ã®ã¯ã©ã¤ã¢ã³ã/ãµã¼ãæ¥ç¶ãç°¡åã«å¯è½ + </simpara> + </listitem> + <listitem> + <simpara> + 99.99% 以ä¸ã®ç¢ºçã§æå¹ã«åä½ããè½å + </simpara> + </listitem> + <listitem> + <simpara> + æ°ä¸ããæ°åä¸ã®ã¦ã¼ã¶ã管çããè½å + </simpara> + </listitem> </itemizedlist> </para> <para> - Now there is a PHP3 SESAM interface available which allows - database operations via PHP-scripts. + PHPã¹ã¯ãªããã«ãããã¼ã¿ãã¼ã¹å¦çãå¯è½ã«ãã PHP3 SESAM ã¤ã³ã¿ã¼ + ãã§ã¼ã¹ãå©ç¨å¯è½ã§ãã </para> <note> - <title>Configuration notes</title> + <title>è¨å®ä¸ã®æ³¨æ</title> <para> - There is no standalone support for the PHP SESAM interface, - it works only as an integrated Apache module. In the Apache PHP - module, this <link linkend="ini.sect.sesam">SESAM interface is - configured</link> using Apache directives. + PHP SESAMã¤ã³ã¿ãã§ã¼ã¹ã¯ãã¹ã¿ã³ãã¢ãã³çããµãã¼ããã¦ãã¾ããã + Apache ã¢ã¸ã¥ã¼ã«çã¨ãã¦çµã¿è¾¼ã¾ããå ´åã®ã¿åä½ãã¾ããApache + PHP ã¢ã¸ã¥ã¼ã«ã«ããã¦ã<link linkend="ini.sect.sesam">SESAMã¤ã³ + ã¿ãã§ã¼ã¹</link> ã¯ãApache ç¨ãã£ã¬ã¯ãã£ãã«ããè¨å®ããã¾ãã <table> - <title>SESAM Configuration directives</title> + <title>SESAM è¨å®ç¨ãã£ã¬ã¯ãã£ã</title> <tgroup cols="2"> <thead> <row> - <entry>Directive</entry> - <entry>Meaning</entry> + <entry>ãã£ã¬ã¯ãã£ã</entry> + <entry>æå³</entry> </row> </thead> <tbody> <row> <entry><literal>php3_sesam_oml</literal></entry> - <entry>Name of BS2000 PLAM library containing the - loadable SESAM driver modules. - Required for using SESAM functions. - <para> - Example: - <informalexample> - <programlisting role="apache"> + <entry> + ãã¼ãå¯è½ãªSESAMãã©ã¤ãã¢ã¸ã¥ã¼ã«ãå«ã¾ããBS2000 PLAM ã© + ã¤ãã©ãªã®ååãSESAM颿°ã使ç¨ããããã«å¿ è¦ã + <para> + ä¾: + <informalexample> + <programlisting role="apache"> php3_sesam_oml $.SYSLNK.SESAM-SQL.030</programlisting> - </informalexample> - </para> - </entry> - </row> - <row> - <entry><literal>php3_sesam_configfile</literal></entry> - <entry>Name of SESAM application configuration file. - Required for using SESAM functions. - <para> - Example: - <informalexample> - <programlisting role="apache"> -php3_sesam_configfile $SESAM.SESAM.CONF.AW</programlisting></informalexample> - It will usually contain a configuration like (see SESAM - reference manual): - <informalexample> - <programlisting role="bs2000"> + </informalexample> + </para> + </entry> + </row> + <row> + <entry><literal>php3_sesam_configfile</literal></entry> + <entry> + SESAM + SESAMã¢ããªã±ã¼ã·ã§ã³è¨å®ãã¡ã¤ã«ã®ååãSESAM颿°ã使ç¨ãã + éã«å¿ è¦ã + <para> + ä¾: + <informalexample> + <programlisting role="apache"> +php3_sesam_configfile $SESAM.SESAM.CONF.AW + </programlisting> + </informalexample> + éå¸¸ãæ¬¡ã®ãããªè¨å®ãå«ã¾ãã¾ãã(SESAMãªãã¡ã¬ã³ã¹ãã㥠+ ã¢ã«ãåç §) + <informalexample> + <programlisting role="bs2000"> CNF=B NAM=K -NOTYPE</programlisting> - </informalexample> - </para> - </entry> +NOTYPE + </programlisting> + </informalexample> + </para> + </entry> </row> <row> <entry><literal>php3_sesam_messagecatalog</literal></entry> - <entry>Name of SESAM message catalog file. - In most cases, this directive is not neccessary. Only if the - SESAM message file is not installed in the system's BS2000 - message file table, it can be set with this directive. - <para> - Example: - <informalexample> - <programlisting role="apache"> -php3_sesam_messagecatalog $.SYSMES.SESAM-SQL.030</programlisting> - </informalexample> - </para> - </entry> + <entry> + SESAMã¡ãã»ã¼ã¸ã«ã¿ãã°ãã¡ã¤ã«ã®ååãå¤ãã®å ´åããã®ã㣠+ ã¬ã¯ãã£ãã¯ä¸è¦ã§ããSESAMã¡ãã»ã¼ã¸ãã¡ã¤ã«ãã·ã¹ãã + BS2000ã¡ãã»ã¼ã¸ãã¡ã¤ã«ã¦ã¼ã¶ãã«ã¤ã³ã¹ãã¼ã«ããã¦ããªãå ´ + åã«ã®ã¿ããã®ãã£ã¬ã¯ãã£ããè¨å®ãããã¨ãå¯è½ã§ãã + <para> + ä¾: + <informalexample> + <programlisting role="apache"> +php3_sesam_messagecatalog $.SYSMES.SESAM-SQL.030 + </programlisting> + </informalexample> + </para> + </entry> </row> </tbody> </tgroup> </table> </para> <para> - In addition to the configuration of the PHP/SESAM interface, - you have to configure the SESAM-Database server itself on your - mainframe as usual. That means: + PHP/SESAMã¤ã³ã¿ã¼ãã§ã¼ã¹ã®è¨å®ã«å ãã¦ãã¡ã¤ã³ãã¬ã¼ã ä¸ã®SESAM + ãã¼ã¿ãã¼ã¹ãµã¼ãã¼èªä½ãè¨å®ããå¿ è¦ãããã¾ããããã¯ã次ã®ã + ãã«ãªãã¾ãã <itemizedlist> - <listitem><simpara>starting the SESAM database handler (DBH), and</simpara></listitem> - <listitem><simpara>connecting the databases with the SESAM database - handler</simpara></listitem> + <listitem> + <simpara> + SESAMãã¼ã¿ãã¼ã¹ãã³ãã©(DBH)ãéå§ + </simpara> + </listitem> + <listitem> + <simpara> + SESAMãã¼ã¿ãã¼ã¹ãã³ãã©ãæå®ãã¦ããã¼ã¿ãã¼ã¹ã«æ¥ç¶ + </simpara> + </listitem> </itemizedlist> </para> + <para> + PHPã¹ã¯ãªããã¨ãã¼ã¿ãã¼ã¹ãã³ãã©ã®éã®æ¥ç¶ãå¾ãã«ã¯ã鏿ãã + SESAMè¨å®ãã¡ã¤ã«ã®ãã©ã¡ã¼ã¿ <literal>CNF</literal> ããã³ + <literal>NAM</literal> ãå®è¡ä¸ã®ãã¼ã¿ãã¼ã¹ãã³ãã©ã®IDã«ä¸è´ã + ã¦ããå¿ è¦ãããã¾ãã + </para> + <para> + 忣åãã¼ã¿ãã¼ã¹ã®å ´åããã¹ãããã³ãã¼ã¿ãã¼ã¹åãæããåé + ãã¼ãã«ãæå®ãã¦SESAM/SQL-DCNã¨ã¼ã¸ã§ã³ããéå§ããå¿ è¦ãããã¾ + ãã + </para> <para> - To get a connection between a PHP script and the database - handler, the <literal>CNF</literal> and <literal>NAM</literal> - parameters of the selected SESAM configuration file must match - the id of the started database handler. - </para> - <para> - In case of distributed databases you have to start a - SESAM/SQL-DCN agent with the distribution table including the - host and database names. - </para> - <para> - The communication between PHP (running in the POSIX subsystem) - and the database handler (running outside the POSIX subsystem) - is realized by a special driver module called SQLSCI and SESAM - connection modules using common memory. - Because of the common memory access, and because PHP is a - static part of the web server, database accesses are very fast, - as they do not require remote accesses via ODBC, JDBC or UTM. - </para> - <para> - Only a small stub loader (SESMOD) is linked with PHP, and the - SESAM connection modules are pulled in from SESAM's OML PLAM - library. In the <link - linkend="ini.sect.sesam">configuration</link>, you must tell - PHP the name of this PLAM library, and the file link to use for - the SESAM configuration file (As of SESAM V3.0, SQLSCI is - available in the SESAM Tool Library, which is part of the - standard distribution). - </para> - <para> - Because the SQL command quoting for single quotes uses duplicated - single quotes (as opposed to a single quote preceded by a - backslash, used in some other databases), it is advisable to - set the PHP configuration directives <link + (POSIXãµãã·ã¹ãã ã§å®è¡ããã¦ãã)PHPã¨(POSIXãµãã·ã¹ãã ã®å¤ã§ + å®è¡ããã¦ãã)ãã¼ã¿ãã¼ã¹ãã³ãã©ã®éã®éä¿¡ã¯ãSQLSCIã¨ããåå + ã®ç¹å¥ãªãã©ã¤ãã¢ã¸ã¥ã¼ã«ã¨é常ã¡ã¢ãªã使ç¨ããSESAMæ¥ç¶ã¢ã¸ã¥ã¼ + ã«ã§å®ç¾ããã¾ããé常ã¡ã¢ãªã¢ã¯ã»ã¹ã®ãããããã¦ãPHPã¯Webãµã¼ + ãã®éçé¨åã§ãããããODBCãJDBCãUTMçµç±ã®ãªã¢ã¼ãã¢ã¯ã»ã¹ã¯ä¸ + è¦ã§ããããã¼ã¿ãã¼ã¹ã¸ã®ã¢ã¯ã»ã¹ã¯é常ã«é«éã§ãã + </para> + <para> + ã¹ã¢ã¼ã«ã¹ã¿ããã¼ã(SESMOD)ã®ã¿ãPHPã«ãªã³ã¯ããã¦ãããSESAMæ¥ + ç¶ã¢ã¸ã¥ã¼ã«ã¯SESAMã®OML PLAMã©ã¤ãã©ãªãããã¼ãããã¾ãã + <link linkend="ini.sect.sesam">è¨å®</link>ã®éããã®PLAMã©ã¤ãã© + ãªã®ååã¨SESAMè¨å®ãã¡ã¤ã«ã使ç¨ããããã®ãã¡ã¤ã«ãªã³ã¯ãPHPã« + æå®ããå¿ è¦ãããã¾ãã(SESAM V3.0 ã«ããã¦ãSQLSCI ã¯æ¨æºé å¸ã® + SESAMãã¼ã«ã©ã¤ãã©ãªããå ¥æå¯è½ã§ã) + </para> + <para> + SQLã³ãã³ãã«ãããã·ã³ã°ã«ã¯ãªã¼ãã®ã¯ãªã¼ãã¯ã(ã·ã³ã°ã«ã¯ãªã¼ + ãã®åã«ããã¯ã¹ã©ãã·ã¥ãä»å ããã®ã§ã¯ãªãã)ã·ã³ã°ã«ã¯ãªã¼ãã + 2ã¤éãã¦ä½¿ç¨ãããããSESAMã¤ã³ã¿ã¼ãã§ã¼ã¹ã使ç¨ããå ¨ã¦ã®PHPã¹ + ã¯ãªããã«ã¤ãã¦ãPHPè¨å®ãã£ã¬ã¯ãã£ãã§ <link linkend="ini.magic-quotes-gpc"><literal>php3_magic_quotes_gpc</literal></link> - and <link - linkend="ini.magic-quotes-sybase"><literal>php3_magic_quotes_sybase</literal></link> - to <literal>On</literal> for all PHP scripts using the SESAM - interface. + ããã³ <link linkend="ini.magic-quotes-sybase"> + <literal>php3_magic_quotes_sybase</literal></link> ã + <literal>On</literal> ã«ãã¦ããæ¹ãè³¢æã§ãããã </para> </note> <note> - <title>Runtime considerations</title> + <title>å®è¡æã®èæ ®</title> <para> - Because of limitations of the BS2000 process model, the driver can - be loaded only after the Apache server has forked off its server child - processes. This will slightly slow down the initial SESAM request - of each child, but subsequent accesses will respond at full speed. - </para> - <para> - When explicitly defining a Message Catalog for SESAM, that - catalog will be loaded each time the driver is loaded (i.e., at - the initial SESAM request). The BS2000 operating system prints - a message after successful load of the message catalog, which - will be sent to Apache's error_log file. BS2000 currently does - not allow suppression of this message, it will slowly fill up - the log. - </para> - <para> - Make sure that the SESAM OML PLAM library and SESAM - configuration file are readable by the user id running the web server. - Otherwise, the server will be unable to load the driver, and - will not allow to call any SESAM functions. Also, access to - the database must be granted to the user id under which the - Apache server is running. Otherwise, connections to the - SESAM database handler will fail. + BS2000 ã¢ãã«ã®å¶éã®ããã«ããã©ã¤ãã¯ãApache ãµã¼ãããã®ãµã¼ + ãã®åããã»ã¹ããã©ã¼ã¯ããå¾ã«ã®ã¿ãã¼ãå¯è½ã¨ãªãã¾ããããã¯ã + ååããã»ã¹ã®æåã®SESAMãªã¯ã¨ã¹ããè¥å¹²é ããã¾ããããã®å¾ã®ã¢ + ã¯ã»ã¹ã¸ã®å¿çã¯æé«é度ã¨ãªãã¾ãã + </para> + <para> + SESAMç¨ã®æç¤ºçã«ã¡ãã»ã¼ã¸ã«ã¿ãã°ãå®ç¾©ããå ´åããã®ã«ã¿ãã°ã¯ + ãã©ã¤ãããã¼ãããã度(ããªãã¡ãæåã®SESAMãªã¯ã¨ã¹ãæã«)ã«ãã¼ + ãããã¾ããBS2000 ãªãã¬ã¼ãã£ã³ã°ã·ã¹ãã ã¯ã¡ãã»ã¼ã¸ã«ã¿ãã°ã® + ãã¼ãã«æåããå¾ã«ã¡ãã»ã¼ã¸ãåºåãã¾ãããã®ã¡ãã»ã¼ã¸ã¯ã + Apacheã®error_logãã¡ã¤ã«ã«éä¿¡ããã¾ããBS2000ã¯ç¾å¨ããã®ã¡ãã»ã¼ + ã¸ã®åºåã忢ãããã¨ãã§ãã¾ããããã®ããããã°ã段ã ã¨åã㦠+ ããã¾ãã + </para> + <para> + SESAM OML PLAM ã©ã¤ãã©ãªã¨SESAMè¨å®ãã¡ã¤ã«ã¯ãWebãµã¼ããå®è¡ã + ã¦ããã¦ã¼ã¶IDããèªã¿è¾¼ã¿å¯è½ã§ãããã¨ã確èªãã¦ä¸ãããããã§ + ãªãå ´åããµã¼ãã¯ãã©ã¤ãããã¼ããããã¨ãã§ãããSESAM颿°ãã³ã¼ + ã«ãããã¨ãã§ãã¾ãããã¾ããApacheãµã¼ããå®è¡ãã¦ããã¦ã¼ã¶ID + ã«ãã¼ã¿ãã¼ã¹ã¸ã®ã¢ã¯ã»ã¹ã許å¯ããã¦ããå¿ è¦ãããã¾ããããã§ + ãªãå ´åãSESAMãã¼ã¿ãã¼ã¹ãã³ãã©ã¸ã®æ¥ç¶ã¯å¤±æãã¾ãã </para> </note> <note> - <title>Cursor Types</title> - <para> - The result cursors which are allocated for SQL "select type" - queries can be either "sequential" or "scrollable". Because - of the larger memory overhead needed by "scrollable" cursors, - the default is "sequential". - </para> + <title>ã«ã¼ã½ã«å</title> <para> - When using "scrollable" cursors, the cursor can be freely - positioned on the result set. For each "scrollable" query, - there are global default values for the scrolling type - (initialized to: <literal>SESAM_SEEK_NEXT</literal>) and - the scrolling offset which can either be set once - by <function>sesam_seek_row</function> or - each time when fetching a row using - <function>sesam_fetch_row</function>. When fetching a row - using a "scrollable" cursor, the following post-processing is - done for the global default values for the scrolling type - and scrolling offset: + SQL "select å"ã¯ã¨ãªç¨ã«ç¢ºä¿ãããçµæã«ã¼ã½ã«ã¯ã"sequential"ã¾ + ãã¯"scrollable"ã®ã©ã¡ããã¨ãããã¨ãå¯è½ã§ãã"scrollable"ã«ã¼ + ã½ã«ã§å¿ è¦ãªã¡ã¢ãªãªã¼ããããã¯ãã大ãããããããã©ã«ã㯠+ "sequential" ã§ãã + </para> + <para> + "scrollable"ã«ã¼ã½ã«ã使ç¨ããå ´åãã«ã¼ã½ã«ã¯çµæéåã®ä¸ã§èªç± + ã«ç§»åå¯è½ã§ããå"scrollable"ã¯ã¨ãªã«ã¤ãã¦ãã¹ã¯ãã¼ã«åã®ã°ãã¼ + ãã«ãªããã©ã«ãå¤(<literal>SESAM_SEEK_NEXT</literal>ã«åæåãã + ã¾ã)ããããã¹ã¯ãã¼ã«ãªãã»ããã¯ã + <function>sesam_seek_row</function> ã«ããä¸åè¨å®ããããã + <function>sesam_fetch_row</function> ã«ããã¬ã³ã¼ããåå¾ãã度㫠+ è¨å®ããããã®ã©ã¡ããã§ãã"scrollable"ã«ã¼ã½ã«ã使ç¨ãã¦ã¬ã³ã¼ + ããåå¾ããéã«ãã¹ã¯ãã¼ã«åããã³ã¹ã¯ãã¼ã«ãªãã»ããã®ã°ãã¼ + ãã«ããã©ã«ãå¤ã«ã¤ãã¦æ¬¡ã®ãããªãã¹ãå¦çè¡ããã¾ãã <table> - <title>Scrolled Cursor Post-Processing</title> + <title>ã¹ã¯ãã¼ã«å¾ã®ã«ã¼ã½ã«ã«é¢ãããã¹ãå¦ç</title> <tgroup cols="2"> <thead> <row> - <entry>Scroll Type</entry> - <entry>Action</entry> + <entry>ã¹ã¯ãã¼ã«å</entry> + <entry>åä½</entry> </row> </thead> <tbody> <row> - <entry><literal>SESAM_SEEK_NEXT</literal></entry> - <entry>none</entry> + <entry><literal>SESAM_SEEK_NEXT</literal></entry> + <entry>ãªã</entry> </row> <row> - <entry><literal>SESAM_SEEK_PRIOR</literal></entry> - <entry>none</entry> + <entry><literal>SESAM_SEEK_PRIOR</literal></entry> + <entry>ãªã</entry> </row> <row> - <entry><literal>SESAM_SEEK_FIRST</literal></entry> - <entry>set scroll type to - <literal>SESAM_SEEK_NEXT</literal></entry> + <entry><literal>SESAM_SEEK_FIRST</literal></entry> + <entry> + ã¹ã¯ãã¼ã«åã <literal>SESAM_SEEK_NEXT</literal> ã«è¨å® + </entry> </row> <row> - <entry><literal>SESAM_SEEK_LAST</literal></entry> - <entry>set scroll type to - <literal>SESAM_SEEK_PRIOR</literal></entry> + <entry><literal>SESAM_SEEK_LAST</literal></entry> + <entry> + ã¹ã¯ãã¼ã«åã <literal>SESAM_SEEK_PRIOR</literal> ã«è¨å® + </entry> </row> <row> - <entry><literal>SESAM_SEEK_ABSOLUTE</literal></entry> - <entry>Auto-Increment internal offset value</entry> + <entry><literal>SESAM_SEEK_ABSOLUTE</literal></entry> + <entry> + å é¨ãªãã»ããå¤ãèªåçã«å¢å ããã + </entry> </row> <row> - <entry><literal>SESAM_SEEK_RELATIVE</literal></entry> - <entry>none. (maintain global default - <parameter>offset</parameter> value, which allows - for, e.g., fetching each 10th row backwards) - </entry> + <entry><literal>SESAM_SEEK_RELATIVE</literal></entry> + <entry> + ãªãã(ã°ãã¼ãã«ããã©ã«ãå¤ <parameter>offset</parameter> + ãä¿æãããããã«ãããä¾ãã°ã10ååã®ã¬ã³ã¼ããåå¾ãã㨠+ ãã£ããã¨ãå¯è½ã«ãªãã¾ã) + </entry> </row> </tbody> </tgroup> @@ -238,57 +260,54 @@ </para> </note> <note> - <title> - Porting note - </title> + <title>ç§»æ¤æã®æ³¨æ</title> <para> - Because in the PHP world it is natural to start indexes at zero - (rather than 1), some adaptions have been made to the SESAM - interface: whenever an indexed array is starting with index 1 - in the native SESAM interface, the PHP interface uses - index 0 as a starting point. E.g., when retrieving columns with - <function>sesam_fetch_row</function>, the first column has the - index 0, and the subsequent columns have indexes up to (but not - including) the column count ($array["count"]). - When porting SESAM applications from other high level languages - to PHP, be aware of this changed interface. Where appropriate, - the description of the respective php sesam functions include a - note that the index is zero based. + PHPã§ã¯ãé åã®æ·»åã¯(1ããã)0ããå§ã¾ãã®ãæ®éãªãããããã¤ã + ã®èª¿æ´ãSESAMã¤ã³ã¿ã¼ãã§ã¼ã¹ã§è¡ããã¦ãã¾ããããæ·»åé åããã¼ + ãã£ãã®SESAMã¤ã³ã¿ã¼ãã§ã¼ã¹ã§æ·»å1ããå§ã¾ãéã«ã¯ãPHPã¤ã³ã¿ã¼ + ãã§ã¼ã¹ã§ã¯æåã®æ·»åã¨ãã¦0ã使ç¨ãã¾ããä¾ãã°ã + <function>sesam_fetch_row</function> ã§ã«ã©ã ãåå¾ããéã«ãæå + ã®ã«ã©ã ã®æ·»åã¯0ã§ããããã®å¾ã®ã«ã©ã çªå·ã¯ã«ã©ã æ° + ($array["count"])ã«éããã¾ã§(ã«ã©ã æ°ã¯å«ã¾ã)å¢ãã¦ããã¾ãã + SESAMã¢ããªã±ã¼ã·ã§ã³ãä»ã®é«ç´è¨èªããPHPã«ç§»æ¤ããéã«ã¯ããã® + ã¤ã³ã¿ã¼ãã§ã¼ã¹ä¸ã®å¤æ´ã«çæããå¿ è¦ãããã¾ããåPHP sesam é¢ + æ°ã®èª¬æã®é©åãªå ´æã«æ·»åã0ããå§ã¾ãã¨ããæ³¨æãå«ã¾ãã¦ãã¾ãã </para> </note> <note> - <title>Security concerns</title> + <title>ã»ãã¥ãªãã£ã®èæ ®</title> <para> - When allowing access to the SESAM databases, the web server - user should only have as little privileges as possible. For most - databases, only read access privilege should be granted. - Depending on your usage scenario, add more access rights as - you see fit. Never allow full control to any database for - any user from the 'net! Restrict access to php scripts - which must administer the database by using password control - and/or SSL security. + SESAMãã¼ã¿ãã¼ã¹ã¸ã®ã¢ã¯ã»ã¹ãå¯è½ãªå ´åãWebãµã¼ãã®ã¦ã¼ã¶ã¯ã + å¯è½ãªéãå°ããªæ¨©éã®ã¿ãæãã¦ããå¿ è¦ãããã¾ããå¤ãã®ãã¼ã¿ + ãã¼ã¹ã§ã¯è¨±å¯ããå¿ è¦ãããã®ã¯èªã¿è¾¼ã¿æ¨©éã®ã¿ã§ãã使ç¨ããè¨ + å®ã«å¿ãã¦ç¶æ³ã«è¦åã£ãã¢ã¯ã»ã¹æ¨©éã追å ãã¦ä¸ãããæ±ºãã¦ãã + ãããã®å ¨ã¦ã®ã¦ã¼ã¶ã«å ¨ã¦ã®ãã¼ã¿ãã¼ã¹ã¸ã®å®å ¨ãªå¶å¾¡æ¨©ã許å¯ã + ãªãã§ä¸ãã! ãã¼ã¿ãã¼ã¹ã管çããPHPã¹ã¯ãªããã¸ã®ã¢ã¯ã»ã¹å¶é + ã¯ããã¹ã¯ã¼ãå¶éã¾ãã¯SSLã»ãã¥ãªãã£ã«ããå¶éãã¦ä¸ããã </para> </note> <note> - <title>Migration from other SQL databases</title> + <title>ä»ã®SQLãã¼ã¿ãã¼ã¹ããã®ç§»è¡</title> <para> - No two SQL dialects are ever 100% compatible. When porting - SQL applications from other database interfaces to SESAM, - some adaption may be required. The following typical - differences should be noted: + SQLã«ã¯æ¹è¨ããããã100%äºæã§ã¯ããã¾ãããä»ã®ãã¼ã¿ãã¼ã¹ã¤ã³ + ã¿ã¼ãã§ã¼ã¹ããSQLã¢ããªã±ã¼ã·ã§ã³ãSESAMã«ç§»æ¤ããéã«ã¯ããã + ã¤ãã®ä¿®æ£ãå¿ è¦ã«ãªãå¯è½æ§ãããã¾ããæ¬¡ã®ãããªå ¸åçãªå·®ç°ã« + 注æããå¿ è¦ãããã¾ãã <itemizedlist> <listitem> - <simpara>Vendor specific data types</simpara> - <simpara>Some vendor specific data types may have to be - replaced by standard SQL data types - (e.g., <literal>TEXT</literal> could be replaced by - <literal>VARCHAR(max. size)</literal>). + <simpara>ãã³ãå°ç¨ã®ãã¼ã¿å</simpara> + <simpara> + ããã¤ãã®ãã³ãå°ç¨ã®ãã¼ã¿åã¯ãæ¨æºçãªSQLãã¼ã¿åã§ç½®æã + ãå¿ è¦ãããã¾ãã(ä¾ãã°ã<literal>TEXT</literal> 㯠+ <literal>VARCHAR(max. size)</literal>ã§ç½®æå¯è½ã§ãã) </simpara> </listitem> <listitem> <simpara>Keywords as SQL identifiers</simpara> - <simpara>In SESAM (as in standard SQL), such identifiers must - be enclosed in double quotes (or renamed).</simpara> + <simpara> + In SESAM (as in standard SQL), such identifiers must + be enclosed in double quotes (or renamed). + </simpara> </listitem> <listitem> <simpara>Display length in data types</simpara> @@ -314,38 +333,42 @@ </listitem> <listitem> <simpara><command>int ... DEFAULT '0000'</command></simpara> - <simpara>Numeric variables must not be initialized with - string constants. Use <command>DEFAULT 0</command> - instead. To initialize variables of the datetime - SQL data types, the initialization string must be - prefixed with the respective type keyword, as in: - <literal> CREATE TABLE exmpl ( + <simpara> + Numeric variables must not be initialized with + string constants. Use <command>DEFAULT 0</command> + instead. To initialize variables of the datetime + SQL data types, the initialization string must be + prefixed with the respective type keyword, as in: + <literal> CREATE TABLE exmpl ( xtime timestamp(3) DEFAULT TIMESTAMP '1970-01-01 00:00:00.000' NOT NULL - ); </literal> + ); + </literal> </simpara> </listitem> <listitem> <simpara><command>$count = xxxx_num_rows();</command></simpara> - <simpara>Some databases promise to guess/estimate the - number of the rows in a query result, even though - the returned value is grossly incorrect. SESAM - does not know the number of rows in a query result - before actually fetching them. If you REALLY need - the count, try <command>SELECT COUNT(...) WHERE - ...</command>, it will tell you the number of hits. - A second query will (hopefully) return the results. + <simpara> + Some databases promise to guess/estimate the + number of the rows in a query result, even though + the returned value is grossly incorrect. SESAM + does not know the number of rows in a query result + before actually fetching them. If you REALLY need + the count, try <command>SELECT COUNT(...) WHERE + ...</command>, it will tell you the number of hits. + A second query will (hopefully) return the results. </simpara> </listitem> <listitem> <simpara><command>DROP TABLE thename;</command></simpara> - <simpara>In SESAM, in the <command>DROP TABLE</command> - command, the table name must be either followed by - the keyword <literal>RESTRICT</literal> or - <literal>CASCADE</literal>. When specifying - <literal>RESTRICT</literal>, an error is returned if - there are dependent objects (e.g., VIEWs), while with - <literal>CASCADE</literal>, dependent objects will be - deleted along with the specified table. + <simpara> + In SESAM, in the <command>DROP TABLE</command> + command, the table name must be either followed by + the keyword <literal>RESTRICT</literal> or + <literal>CASCADE</literal>. When specifying + <literal>RESTRICT</literal>, an error is returned if + there are dependent objects (e.g., VIEWs), while with + <literal>CASCADE</literal>, dependent objects will be + deleted along with the specified table. </simpara> </listitem> </itemizedlist> @@ -449,10 +472,10 @@ <refentry id="function.sesam-connect"> <refnamediv> <refname>sesam_connect</refname> - <refpurpose>Open SESAM database connection</refpurpose> + <refpurpose>SESAM ãã¼ã¿ãã¼ã¹æ¥ç¶ããªã¼ãã³ãã</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>boolean <function>sesam_connect</function></funcdef> @@ -513,7 +536,7 @@ <refpurpose>Detach from SESAM connection</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>boolean <function>sesam_disconnect</function></funcdef> @@ -562,7 +585,7 @@ <refpurpose>Set SESAM transaction parameters</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>boolean <function>sesam_settransaction</function></funcdef> @@ -676,7 +699,7 @@ <refpurpose>Commit pending updates to the SESAM database</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>boolean <function>sesam_commit</function></funcdef> @@ -725,7 +748,7 @@ <refpurpose>Discard any pending updates to the SESAM database</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>boolean <function>sesam_rollback</function></funcdef> @@ -773,7 +796,7 @@ <refpurpose>Execute an "immediate" SQL-statement</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>string <function>sesam_execimm</function></funcdef> @@ -831,7 +854,7 @@ <refpurpose>Perform a SESAM SQL query and prepare the result</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>string <function>sesam_query</function></funcdef> @@ -943,7 +966,7 @@ <refpurpose>Return the number of fields/columns in a result set</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>int <function>sesam_num_fields</function></funcdef> @@ -979,7 +1002,7 @@ </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>int <function>sesam_field_name</function></funcdef> @@ -1012,7 +1035,7 @@ <refpurpose>Return status information for last SESAM call</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>array <function>sesam_diagnostic</function></funcdef> @@ -1154,10 +1177,10 @@ <refentry id="function.sesam-fetch-result"> <refnamediv> <refname>sesam_fetch_result</refname> - <refpurpose>Return all or part of a query result</refpurpose> + <refpurpose>ã¯ã¨ãªçµæã®å ¨ã¦ãããã¯ä¸é¨ãè¿ã</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>mixed <function>sesam_fetch_result</function></funcdef> @@ -1175,13 +1198,13 @@ Note that both row and column indexes are zero-based. <table> <title> - Mixed result set returned by <function>sesam_fetch_result</function> + <function>sesam_fetch_result</function>ã«ããè¿ããã種ã ã®çµæéå </title> <tgroup cols="2"> <thead> <row> - <entry>Array Element</entry> - <entry>Contents</entry> + <entry>é åè¦ç´ </entry> + <entry>宿°</entry> </row> </thead> <tbody> @@ -1248,7 +1271,7 @@ <refpurpose>Get number of rows affected by an immediate query</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>int <function>sesam_affected_rows</function></funcdef> @@ -1297,7 +1320,7 @@ <refpurpose>Returns error message of last SESAM call</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>string <function>sesam_errormsg</function></funcdef> @@ -1329,7 +1352,7 @@ </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>array <function>sesam_field_array</function></funcdef> @@ -1521,7 +1544,7 @@ <refpurpose>Fetch one row as an array</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>array <function>sesam_fetch_row</function></funcdef> @@ -1691,7 +1714,7 @@ <refpurpose>Fetch one row as an associative array</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>array <function>sesam_fetch_array</function></funcdef> @@ -1808,11 +1831,11 @@ <refnamediv> <refname>sesam_seek_row</refname> <refpurpose> - Set scrollable cursor mode for subsequent fetches + é£ç¶çã«åå¾ããéã«ã¹ã¯ãã¼ã«å¯è½ãªã«ã¼ã½ã«ã¢ã¼ãã«è¨å®ãã </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>boolean <function>sesam_seek_row</function></funcdef> @@ -1824,9 +1847,9 @@ </funcprototype> </funcsynopsis> <para> - <parameter>result_id</parameter> is a valid result id (select - type queries only, and only if a "scrollable" cursor was - requested when calling <function>sesam_query</function>). + <parameter>result_id</parameter> ã¯æå¹ãªçµæIDã§ãã(select + åã®ã¯ã¨ãªã§ããã¤ã<function>sesam_query</function>ãã³ã¼ã« + ããéã«"ã¹ã¯ãã¼ã«å¯è½ãª"ã«ã¼ã½ã«ãè¦æ±ãããå ´åã®ã¿) </para> <para> <parameter>whence</parameter> sets the global default value @@ -1905,10 +1928,10 @@ <refentry id="function.sesam-free-result"> <refnamediv> <refname>sesam_free_result</refname> - <refpurpose>Releases resources for the query</refpurpose> + <refpurpose>ã¯ã¨ãªã«é¢ãããªã½ã¼ã¹ãéæ¾ãã</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>int <function>sesam_free_result</function></funcdef> @@ -1916,9 +1939,8 @@ </funcprototype> </funcsynopsis> <para> - Releases resources for the query associated with - <parameter>result_id</parameter>. Returns - <literal>FALSE</literal> on error. + <parameter>result_id</parameter> ãæãã¯ã¨ãªã«é¢ãããªã½ã¼ã¹ãé + æ¾ãã¾ããã¨ã©ã¼ã®å ´åã« <literal>FALSE</literal> ãè¿ãã¾ãã </para> </refsect1> </refentry>