mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 13:57:03 +08:00
77 lines
3.6 KiB
HTML
77 lines
3.6 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<title>Get MaxDB client info</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.maxdb-get-client-version" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">maxdb_get_client_version</h1>
|
|
<p class="verinfo">(PECL maxdb >= 1.0)</p><p class="refpurpose"><span class="refname">maxdb_get_client_version</span> — <span class="dc-title">Get MaxDB client info</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.maxdb-get-client-version-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>maxdb_get_client_version</strong></span>
|
|
( <span class="methodparam">void</span>
|
|
) : <span class="type">int</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
Returns client version number as an integer.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.maxdb-get-client-version-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
A number that represents the MaxDB client library version in format:
|
|
<em>main_version*10000 + minor_version *100 + sub_version</em>.
|
|
For example, 7.5.0 is returned as 70500.
|
|
</p>
|
|
<p class="para">
|
|
This is useful to quickly determine the version of the client library
|
|
to know if some capability exists.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 examples" id="refsect1-function.maxdb-get-client-version-examples">
|
|
<h3 class="title">范例</h3>
|
|
<p class="para">
|
|
<div class="example" id="example-1366">
|
|
<p><strong>Example #1 maxdb_get_client_version</strong></p>
|
|
<div class="example-contents">
|
|
<div class="phpcode"><pre><span style="color: #000000">
|
|
<span style="color: #0000BB"><?php<br /><br /></span><span style="color: #FF8000">/* We don't need a connection to determine<br /> the version of MaxDB client library */<br /><br /></span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Client library version: %d\n"</span><span style="color: #007700">, </span><span style="color: #0000BB">maxdb_get_client_version</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?></span>
|
|
</span>
|
|
</pre></div>
|
|
</div>
|
|
|
|
</div>
|
|
</p>
|
|
<p class="para">以上例程的输出类似于:</p>
|
|
<div class="example-contents screen">
|
|
<div class="cdata"><pre>
|
|
Client library version: 7.<...>
|
|
</pre></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 seealso" id="refsect1-function.maxdb-get-client-version-seealso">
|
|
<h3 class="title">参见</h3>
|
|
<p class="para">
|
|
<ul class="simplelist">
|
|
<li class="member"><span class="function"><a href="maxdb_get_client_info.html" class="function" rel="rdfs-seeAlso">maxdb_get_client_info()</a> - Returns the MaxDB client version as a string</span></li>
|
|
<li class="member"><span class="function"><a href="maxdb_get_server_info.html" class="function" rel="rdfs-seeAlso">maxdb_get_server_info()</a> - Returns the version of the MaxDB server</span></li>
|
|
<li class="member"><span class="function"><a href="maxdb_get_server_version.html" class="function" rel="rdfs-seeAlso">maxdb_get_server_version()</a> - Returns the version of the MaxDB server as an integer</span></li>
|
|
</ul>
|
|
</p>
|
|
</div>
|
|
|
|
|
|
</div></div></div></body></html> |