philip          Wed Mar 30 20:28:41 2005 EDT

  Modified files:              
    /phpdoc/en/reference/mysql/functions        mysql-connect.xml 
  Log:
  WS, preparation for the new doc style
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/mysql/functions/mysql-connect.xml?r1=1.13&r2=1.14&ty=u
Index: phpdoc/en/reference/mysql/functions/mysql-connect.xml
diff -u phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.13 
phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.14
--- phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.13  Tue Sep 28 
11:33:55 2004
+++ phpdoc/en/reference/mysql/functions/mysql-connect.xml       Wed Mar 30 
20:28:41 2005
@@ -1,99 +1,93 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.13 $ -->
+<!-- $Revision: 1.14 $ -->
 <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
-  <refentry id="function.mysql-connect">
-   <refnamediv>
-    <refname>mysql_connect</refname>
-    <refpurpose>Open a connection to a MySQL Server</refpurpose>
-   </refnamediv>
-   <refsect1>
-    <title>Description</title>
-     <methodsynopsis>
-      <type>resource</type><methodname>mysql_connect</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>bool</type><parameter>
-        new_link
-       </parameter></methodparam>
-      <methodparam choice="opt"><type>int</type><parameter>
-        client_flags
-      </parameter></methodparam>
-     </methodsynopsis>
-    <para>
-     Returns a MySQL link identifier on success, or &false; on failure.
-    </para>
-    <para>
-     <function>mysql_connect</function> establishes a connection
-     to a MySQL server.  The following defaults are assumed for
-     missing optional parameters: <parameter>server</parameter> =
-     'localhost:3306', <parameter>username</parameter> = name of the
-     user that owns the server process and
-     <parameter>password</parameter> = empty password.
-    </para>
-    <para>
-     The <parameter>server</parameter> parameter can also include a port
-     number. e.g. &quot;hostname:port&quot; or a path to a local socket
-     e.g. &quot;:/path/to/socket&quot; for the localhost.
-     <note>
-      <para>
-       Whenever you specify &quot;localhost&quot; or
-       &quot;localhost:port&quot; as server, the MySQL client library will
-       override this and try to connect to a local socket (named pipe on
-       Windows). If you want to use TCP/IP, use &quot;127.0.0.1&quot;
-       instead of &quot;localhost&quot;. If the MySQL client library tries to
-       connect to the wrong local socket, you should set the correct path as
-       mysql.default_host in your PHP configuration and leave the server field
-       blank.
-      </para>
-      <para>
-       Support for &quot;:port&quot; was added in PHP 3.0B4.
-      </para>
-      <para>
-       Support for &quot;:/path/to/socket&quot; was added in
-       PHP 3.0.10.
-      </para>
-      <para>
-       You can suppress the error message on failure by prepending 
-       a <link linkend="language.operators.errorcontrol">@</link>
-       to the function name.
-      </para>
-     </note>
-    </para>
-    <para>
-     If a second call is made to <function>mysql_connect</function>
-     with the same arguments, no new link will be established, but
-     instead, the link identifier of the already opened link will be
-     returned. The <parameter>new_link</parameter> parameter modifies this 
-     behavior and makes <function>mysql_connect</function> always open 
-     a new link, even if <function>mysql_connect</function> was called 
-     before with the same parameters. The <parameter>client_flags</parameter>
-     parameter can be a combination of the constants
-     <constant>MYSQL_CLIENT_COMPRESS</constant>, 
-     <constant>MYSQL_CLIENT_IGNORE_SPACE</constant> or
-     <constant>MYSQL_CLIENT_INTERACTIVE</constant>.
-    </para>
-    <note>
-     <para>
-      The <parameter>new_link</parameter> parameter became available 
-      in PHP 4.2.0
-     </para>
-     <para>
-      The <parameter>client_flags</parameter> parameter became available in 
-      PHP 4.3.0
-     </para>
-    </note>
-    <para>
-     The link to the server will be closed as soon as the execution of
-     the script ends, unless it's closed earlier by explicitly calling
-     <function>mysql_close</function>.
-    </para>
-    <para>
-     <example>
-      <title><function>mysql_connect</function> example</title>
-      <programlisting role="php">
+<refentry id="function.mysql-connect">
+ <refnamediv>
+  <refname>mysql_connect</refname>
+  <refpurpose>Open a connection to a MySQL Server</refpurpose>
+ </refnamediv>
+ <refsect1>
+  <title>Description</title>
+  <methodsynopsis>
+   <type>resource</type><methodname>mysql_connect</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>bool</type><parameter>new_link</parameter></methodparam>
+   <methodparam 
choice="opt"><type>int</type><parameter>client_flags</parameter></methodparam>
+  </methodsynopsis>
+  <para>
+   Returns a MySQL link identifier on success, or &false; on failure.
+  </para>
+  <para>
+   <function>mysql_connect</function> establishes a connection
+   to a MySQL server.  The following defaults are assumed for
+   missing optional parameters: <parameter>server</parameter> =
+   'localhost:3306', <parameter>username</parameter> = name of the
+   user that owns the server process and
+   <parameter>password</parameter> = empty password.
+  </para>
+  <para>
+   The <parameter>server</parameter> parameter can also include a port
+   number. e.g. &quot;hostname:port&quot; or a path to a local socket
+   e.g. &quot;:/path/to/socket&quot; for the localhost.
+   <note>
+    <para>
+     Whenever you specify &quot;localhost&quot; or
+     &quot;localhost:port&quot; as server, the MySQL client library will
+     override this and try to connect to a local socket (named pipe on
+     Windows). If you want to use TCP/IP, use &quot;127.0.0.1&quot;
+     instead of &quot;localhost&quot;. If the MySQL client library tries to
+     connect to the wrong local socket, you should set the correct path as
+     mysql.default_host in your PHP configuration and leave the server field
+     blank.
+    </para>
+    <para>
+     Support for &quot;:port&quot; was added in PHP 3.0B4.
+    </para>
+    <para>
+     Support for &quot;:/path/to/socket&quot; was added in
+     PHP 3.0.10.
+    </para>
+    <para>
+     You can suppress the error message on failure by prepending 
+     a <link linkend="language.operators.errorcontrol">@</link>
+     to the function name.
+    </para>
+   </note>
+  </para>
+  <para>
+   If a second call is made to <function>mysql_connect</function>
+   with the same arguments, no new link will be established, but
+   instead, the link identifier of the already opened link will be
+   returned. The <parameter>new_link</parameter> parameter modifies this 
+   behavior and makes <function>mysql_connect</function> always open 
+   a new link, even if <function>mysql_connect</function> was called 
+   before with the same parameters. The <parameter>client_flags</parameter>
+   parameter can be a combination of the constants
+   <constant>MYSQL_CLIENT_COMPRESS</constant>, 
+   <constant>MYSQL_CLIENT_IGNORE_SPACE</constant> or
+   <constant>MYSQL_CLIENT_INTERACTIVE</constant>.
+  </para>
+  <note>
+   <para>
+    The <parameter>new_link</parameter> parameter became available 
+    in PHP 4.2.0
+   </para>
+   <para>
+    The <parameter>client_flags</parameter> parameter became available in 
+    PHP 4.3.0
+   </para>
+  </note>
+  <para>
+   The link to the server will be closed as soon as the execution of
+   the script ends, unless it's closed earlier by explicitly calling
+   <function>mysql_close</function>.
+  </para>
+  <para>
+   <example>
+    <title><function>mysql_connect</function> example</title>
+    <programlisting role="php">
 <![CDATA[
 <?php
 $link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
@@ -104,16 +98,16 @@
 mysql_close($link);
 ?>
 ]]>
-      </programlisting>
-     </example>
-    </para>
-    <para> 
-     See also
-     <function>mysql_pconnect</function> and
-     <function>mysql_close</function>.
-    </para>
-   </refsect1>
-  </refentry>
+    </programlisting>
+   </example>
+  </para>
+  <para> 
+   See also
+   <function>mysql_pconnect</function> and
+   <function>mysql_close</function>.
+  </para>
+ </refsect1>
+</refentry>
 
 <!-- Keep this comment at the end of the file
 Local variables:

Reply via email to