cvs: phpdoc-zh /reference/pgsql/functions pg-get-pid.xml pg-metadata.xml pg-ping.xml pg-result-seek.xml pg-unescape-bytea.xml

From: Date: Fri, 28 Feb 2003 07:02:45 +0000
Subject: cvs: phpdoc-zh /reference/pgsql/functions pg-get-pid.xml pg-metadata.xml pg-ping.xml pg-result-seek.xml pg-unescape-bytea.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-1146@lists.php.net to get a copy of this message
dallas Fri Feb 28 02:02:45 2003 EDT Added files: /phpdoc-zh/reference/pgsql/functions pg-get-pid.xml pg-ping.xml pg-result-seek.xml pg-unescape-bytea.xml Removed files: /phpdoc-zh/reference/pgsql/functions pg-metadata.xml Log: New functions documented. Index: phpdoc-zh/reference/pgsql/functions/pg-get-pid.xml +++ phpdoc-zh/reference/pgsql/functions/pg-get-pid.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.1 Maintainer: dallas Status: ready --> <refentry id="function.pg-get-pid"> <refnamediv> <refname>pg_get_pid</refname> <refpurpose>Ping Êý¾Ý¿âÁ¬½Ó</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>int</type><methodname>pg_get_pid</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_get_pid</function> È¡µÃºó¶Ë£¨Êý¾Ý¿â·þÎñÆ÷½ø³Ì£©µÄ PID¡£PID ÓÃÀ´¼ì²éÆäËü½ø³ÌÊÇ·ñ·¢ËÍÁË <literal>NOTIFY</literal> ÏûÏ¢¡£ </para> <para> ²Î¼û <function>pg_get_notify</function>¡£ </para> <para> <example> <title>PostgreSQL ºó¶Ë PID</title> <programlisting role="php"> <![CDATA[ <?php $conn = pg_pconnect ("dbname=publisher"); if (!$conn) { echo "An error occured.\n"; exit; } // Backend process PID. Use PID with pg_get_notify() $pid = pg_get_pid($conn); ?> ]]> </programlisting> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-zh/reference/pgsql/functions/pg-ping.xml +++ phpdoc-zh/reference/pgsql/functions/pg-ping.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> <refentry id="function.pg-ping"> <refnamediv> <refname>pg_ping</refname> <refpurpose>Ping Êý¾Ý¿âÁ¬½Ó</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>bool</type><methodname>pg_ping</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_ping</function> ping Êý¾Ý¿âÁ¬½Ó£¬Èç¹ûÖжÏÔò³¢ÊÔÖØÐÂÁ¬½Ó¡£Èç¹ûÁ¬½ÓÔڻ״̬·µ»Ø &true;£¬·ñÔò·µ»Ø &false;¡£ </para> <para> ²Î¼ûo <function>pg_connection_status</function> ºÍ <function>pg_connection_reset</function>¡£ </para> <para> <example> <title>PostgreSQL ping</title> <programlisting role="php"> <![CDATA[ <?php $conn = pg_pconnect ("dbname=publisher"); if (!$conn) { echo "An error occured.\n"; exit; } if (!pg_ping($conn)) die("Connection is broken\n"); ?> ]]> </programlisting> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-zh/reference/pgsql/functions/pg-result-seek.xml +++ phpdoc-zh/reference/pgsql/functions/pg-result-seek.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> <refentry id="function.pg-result-seek"> <refnamediv> <refname>pg_result_seek</refname> <refpurpose>ÔÚ½á¹û×ÊÔ´ÖÐÉ趨ÄÚ²¿ÐÐÆ«ÒÆÁ¿</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>array</type><methodname>pg_result_seek</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> <methodparam><type>int</type><parameter>offset</parameter></methodparam> </methodsynopsis> <para> <function>pg_result_seek</function> ÔÚ½á¹û×ÊÔ´ÖÐÉ趨ÄÚ²¿ÐÐÆ«ÒÆÁ¿¡£Èç¹û³ö´íÔò·µ»Ø &false;¡£ </para> <para> ²Î¼û <function>pg_fetch_row</function>£¬<function>pg_fetch_assoc</function>£¬<function>pg_fetch_array</function>£¬<function>pg_fetch_object</function> ºÍ <function>pg_fetch_result</function>¡£ </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-zh/reference/pgsql/functions/pg-unescape-bytea.xml +++ phpdoc-zh/reference/pgsql/functions/pg-unescape-bytea.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.1 Maintainer: dallas Status: ready --> <refentry id='function.pg-unescape-bytea'> <refnamediv> <refname>pg_unescape_bytea</refname> <refpurpose> È¡Ïû bytea ÀàÐÍÖеÄ×Ö·û´®×ªÒå </refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>string</type><methodname>pg_unescape_bytea</methodname> <methodparam><type>string</type><parameter>data</parameter></methodparam> </methodsynopsis> <para> <function>pg_unescape_bytea</function> ½« bytea Êý¾ÝÀàÐÍÖеÄ×Ö·û´®È¡ÏûתÒå¡£·µ»ØÎ´×ªÒåµÄ×Ö·û´®£¨¶þ½øÖÆ£©¡£ </para> <note> <para> µ± SELECT bytea ÀàÐÍ£¬PostgreSQL ·µ»ØÓà \ ǰµ¼µÄ°Ë½øÖÆ×Ö½ÚÖµ£¨ÀýÈç \032£©¡£Óû§ÐèÒª×ÔÐн«Æäת»»»Ø¶þ½øÖƸñʽ¡£ </para> <para> ±¾º¯ÊýÐèÒª PostgreSQL 7.2 »ò¸üа汾¡£ÔÚ PostgreSQL 7.2.0 ºÍ 7.2.1 ÖУ¬µ±¼¤»îÁ˶à×Ö½ÚÖ§³Öʱ±ØÐëÇ¿ÖÆ×ª»»Îª bytea ÀàÐÍ£¬ÀýÈç <literal>INSERT INTO test_table (image) VALUES ('$image_escaped'::bytea);</literal>¡£PostgreSQL 7.2.2 »ò¸üа汾²»ÐèÒªÇ¿ÖÆ×ª»»¡£ÀýÍâÊǵ±¿Í»§¶ËºÍºó¶ËµÄ×Ö·û±àÂ벻ƥÅäʱ£¬ÓпÉÄܳöÏÖ¶à×Ö½ÚÁ÷´íÎó¡£Óû§±ØÐëÇ¿ÖÆ×ª»»Îª bytea À´±ÜÃâ´Ë´íÎó¡£ </para> </note> <para> ²Î¼û <function>pg_escape_bytea</function> ºÍ <function>pg_escape_string</function>¡£ </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->

« previous php.doc.zh (#1146) next »