cvs: phpdoc-zh /reference/mysql/functions mysql-pconnect.xml mysql-ping.xml

From: Date: Tue, 04 Mar 2003 08:51:46 +0000
Subject: cvs: phpdoc-zh /reference/mysql/functions mysql-pconnect.xml mysql-ping.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-1160@lists.php.net to get a copy of this message
dallas Tue Mar 4 03:51:46 2003 EDT Added files: /phpdoc-zh/reference/mysql/functions mysql-pconnect.xml mysql-ping.xml Log: completed. Index: phpdoc-zh/reference/mysql/functions/mysql-pconnect.xml +++ phpdoc-zh/reference/mysql/functions/mysql-pconnect.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> <refentry id="function.mysql-pconnect"> <refnamediv> <refname>mysql_pconnect</refname> <refpurpose> ´ò¿ªÒ»¸öµ½ MySQL ·þÎñÆ÷µÄ³Ö¾ÃÁ¬½Ó </refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>resource</type><methodname>mysql_pconnect</methodname> <methodparam choice="opt"><type>string</type><parameter> server </parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>username</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>password</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>client_flags</parameter></methodparam> </methodsynopsis> <para> Èç¹û³É¹¦Ôò·µ»ØÒ»¸öÕýµÄ MySQL ³Ö¾ÃÁ¬½Ó±êʶ·û£¬³ö´íÔò·µ»Ø &false;¡£ </para> <para> <function>mysql_pconnect</function> ½¨Á¢Ò»¸öµ½ MySQL ·þÎñÆ÷µÄÁ¬½Ó¡£Èç¹ûûÓÐÌṩ¿ÉÑ¡²ÎÊý£¬ÔòʹÓÃÈçÏÂĬÈÏÖµ£º<parameter>server</parameter> = 'localhost:3306'£¬<parameter>username</parameter> = ·þÎñÆ÷½ø³ÌËùÓÐÕßµÄÓû§Ãû£¬<parameter>password</parameter> = ¿ÕÃÜÂë¡£<parameter>client_flags</parameter> ²ÎÊý¿ÉÒÔÊÇÒÔϳ£Á¿µÄ×éºÏ£ºMYSQL_CLIENT_COMPRESS£¬MYSQL_CLIENT_IGNORE_SPACE »òÕß MYSQL_CLIENT_INTERACTIVE¡£ </para> <para> <parameter>server</parameter> ²ÎÊýÒ²¿ÉÒÔ°üÀ¨¶Ë¿ÚºÅ£¬ÀýÈç &quot;hostname:port&quot;£¬»òÕßÊDZ¾»úÌ×½Ó×ֵĵÄ·¾¶£¬ÀýÈç &quot;:/path/to/socket&quot;¡£ <note> <para> ¶Ô &quot;:port&quot; µÄÖ§³ÖÊÇ 3.0B4 °æÌí¼ÓµÄ¡£ </para> <para> ¶Ô &quot;:/path/to/socket&quot; µÄÖ§³ÖÊÇ 3.0.10 °æÌí¼ÓµÄ¡£ </para> </note> </para> <!-- TODO move the story to features.persistent, and refer to that --> <para> <function>mysql_pconnect</function> ºÍ <function>mysql_connect</function> ·Ç³£ÏàËÆ£¬µ«ÓÐÁ½¸öÖ÷񻂿±ð¡£ </para> <para> Ê×ÏÈ£¬µ±Á¬½ÓµÄʱºò±¾º¯Êý½«Ïȳ¢ÊÔѰÕÒÒ»¸öÔÚͬһ¸öÖ÷»úÉÏÓÃͬÑùµÄÓû§ÃûºÍÃÜÂëÒѾ­´ò¿ªµÄ£¨³Ö¾Ã£©Á¬½Ó£¬Èç¹ûÕÒµ½£¬Ôò·µ»Ø´ËÁ¬½Ó±êʶ¶ø²»´ò¿ªÐÂÁ¬½Ó¡£ </para> <para> Æä´Î£¬µ±½Å±¾Ö´ÐÐÍê±Ïºóµ½ SQL ·þÎñÆ÷µÄÁ¬½Ó²»»á±»¹Ø±Õ£¬´ËÁ¬½Ó½«±£³Ö´ò¿ªÒÔ±¸ÒÔºóʹÓã¨<function>mysql_close</function> ²»»á¹Ø±ÕÓÉ <function>mysql_pconnect</function> ½¨Á¢µÄÁ¬½Ó£©¡£ </para> <para> ¿ÉÑ¡²ÎÊý <parameter>client_flags</parameter> ×Ô PHP 4.3.0 °æÆð¿ÉÓᣠ</para> <para> ´ËÖÖÁ¬½Ó³ÆÎª¡°³Ö¾ÃµÄ¡±¡£ </para> <note> <para> ×¢Ò⣬´ËÖÖÁ¬½Ó½öÄÜÓÃÓÚÄ£¿é°æ±¾µÄ PHP¡£¸ü¶àÐÅÏ¢²Î¼û<link linkend="features.persistent-connections">Êý¾Ý¿â³Ö¾ÃÁ¬½Ó</link>Ò»½Ú¡£ </para> </note> <warning> <para> ʹÓó־ÃÁ¬½ÓÐèÒªµ÷ÕûһЩ Apache ºÍ MySQL µÄÅäÖÃÒÔʹ²»»á³¬³ö MySQL ËùÔÊÐíµÄÁ¬½ÓÊýÄ¿¡£ </para> </warning> </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/mysql/functions/mysql-ping.xml +++ phpdoc-zh/reference/mysql/functions/mysql-ping.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> <refentry id="function.mysql-ping"> <refnamediv> <refname>mysql_ping</refname> <refpurpose>Ping Ò»¸ö·þÎñÆ÷Á¬½Ó£¬Èç¹ûûÓÐÁ¬½ÓÔòÖØÐÂÁ¬½Ó</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>bool</type><methodname>mysql_ping</methodname> <methodparam choice="opt"><type>resource</type><parameter> link_identifier </parameter></methodparam> </methodsynopsis> <para> <function>mysql_ping</function> ¼ì²éµ½·þÎñÆ÷µÄÁ¬½ÓÊÇ·ñÕý³£¡£Èç¹û¶Ï¿ª£¬Ôò×Ô¶¯³¢ÊÔÁ¬½Ó¡£±¾º¯Êý¿ÉÓÃÓÚ¿ÕÏкܾõĽű¾À´¼ì²é·þÎñÆ÷ÊÇ·ñ¹Ø±ÕÁËÁ¬½Ó£¬Èç¹ûÓбØÒªÔòÖØÐÂÁ¬½ÓÉÏ¡£Èç¹ûµ½·þÎñÆ÷µÄÁ¬½Ó¿ÉÓÃÔò <function>mysql_ping</function> ·µ»Ø &true;£¬·ñÔò·µ»Ø &false;¡£ </para> <para> ²Î¼û <function>mysql_thread_id</function> ºÍ <function>mysql_list_processes</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 (#1160) next »