2004-02-08 13:38:38 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2004-10-31 16:05:14 +00:00
|
|
|
<!-- $Revision: 1.5 $ -->
|
2004-03-20 23:26:29 +00:00
|
|
|
<refentry id="function.mysqli-get-client-version">
|
2004-02-08 13:38:38 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>mysqli_get_client_version</refname>
|
2004-07-27 04:48:55 +00:00
|
|
|
<refpurpose>Get MySQL client info</refpurpose>
|
2004-02-08 13:38:38 +00:00
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<methodsynopsis>
|
|
|
|
<type>int</type><methodname>mysqli_get_client_version</methodname>
|
|
|
|
<void/>
|
|
|
|
</methodsynopsis>
|
2004-02-22 21:46:41 +00:00
|
|
|
<para>
|
|
|
|
Returns client version number as an integer.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1>
|
2004-10-31 16:05:14 +00:00
|
|
|
&reftitle.returnvalues;
|
2004-02-22 21:46:41 +00:00
|
|
|
<para>
|
|
|
|
A number that represents the MySQL client library version in format:
|
|
|
|
<literal>main_version*10000 + minor_version *100 + sub_version</literal>.
|
|
|
|
For example, 4.1.0 is returned as 40100.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
This is useful to quickly determine the version of the client library
|
|
|
|
to know if some capability exits.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1>
|
2004-10-31 16:05:14 +00:00
|
|
|
&reftitle.seealso;
|
2004-02-22 21:46:41 +00:00
|
|
|
<para>
|
|
|
|
<function>mysqli_get_client_info</function>,
|
2004-10-31 16:05:14 +00:00
|
|
|
<function>mysqli_get_server_info</function>&listendand;
|
|
|
|
<function>mysqli_get_server_version</function>.
|
2004-02-22 21:46:41 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1>
|
2004-10-31 16:05:14 +00:00
|
|
|
&reftitle.examples;
|
2004-02-22 21:46:41 +00:00
|
|
|
<para>
|
|
|
|
<example>
|
|
|
|
<title>mysqli_get_client_version</title>
|
|
|
|
<programlisting role='php'>
|
|
|
|
<![CDATA[
|
|
|
|
<?php
|
2004-02-08 13:38:38 +00:00
|
|
|
|
2004-02-22 21:46:41 +00:00
|
|
|
/* We don't need a connection to determine
|
|
|
|
the version of mysql client library */
|
2004-02-08 13:38:38 +00:00
|
|
|
|
2004-02-22 21:46:41 +00:00
|
|
|
printf("Client library version: %d\n", mysqli_get_client_version());
|
|
|
|
?>
|
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
</example>
|
|
|
|
</para>
|
2004-02-08 13:38:38 +00:00
|
|
|
</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
|
|
|
|
-->
|