mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
added sample
added see alsos git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@79314 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
4bf34401d3
commit
4868726c09
3 changed files with 66 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.62 -->
|
||||
<refentry id="function.mysql-get-client-info">
|
||||
<refnamediv>
|
||||
|
@ -16,8 +16,28 @@
|
|||
<function>mysql_get_client_info</function> returns a string that
|
||||
represents the client library version.
|
||||
</para>
|
||||
<example>
|
||||
<title>mysql_get_client_info Example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
printf ("MySQL client info: %s\n", mysql_get_client_info());
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
MySQL client info: 3.23.39
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
<para>
|
||||
<function>mysql_get_client_info</function> was added in PHP 4.0.5.
|
||||
See also: <function>mysql_get_host_info</function>,
|
||||
<function>mysql_get_proto_info</function> and
|
||||
<function>mysql_get_server_info</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.62 -->
|
||||
<refentry id="function.mysql-get-proto-info">
|
||||
<refnamediv>
|
||||
|
@ -19,8 +19,28 @@
|
|||
<parameter>link_identifier</parameter> is omitted, the last opened
|
||||
connection will be used.
|
||||
</para>
|
||||
<example>
|
||||
<title>mysql_get_proto_info Example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
printf ("MySQL protocol version: %s\n", mysql_get_proto_info());
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
MySQL protocol version : 10
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
<para>
|
||||
<function>mysql_get_proto_info</function> was added in PHP 4.0.5.
|
||||
See also: <function>mysql_get_client_info</function>,
|
||||
<function>mysql_get_host_info</function> and
|
||||
<function>mysql_get_server_info</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.96 -->
|
||||
<refentry id="function.mysql-get-server-info">
|
||||
<refnamediv>
|
||||
|
@ -19,8 +19,28 @@
|
|||
<parameter>link_identifier</parameter> is omitted, the last opened
|
||||
connection will be used.
|
||||
</para>
|
||||
<example>
|
||||
<title>mysql_get_server_info Example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
printf ("MySQL server version: %s\n", mysql_get_server_info());
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
MySQL server version: 4.0.1-alpha
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
<para>
|
||||
<function>mysql_get_server_info</function> was added in PHP 4.0.5.
|
||||
See also: <function>mysql_get_client_info</function>,
|
||||
<function>mysql_get_host_info</function> and
|
||||
<function>mysql_get_proto_info</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
Loading…
Reference in a new issue