mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-27 14:28:56 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@308986 c90b9560-bf6c-de11-be94-00142212c4b1
126 lines
2.9 KiB
XML
126 lines
2.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
|
|
<refentry xml:id="function.cubrid-get-charset" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<refnamediv>
|
|
<refname>cubrid_get_charset</refname>
|
|
<refpurpose>Return the current CUBRID connection charset</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>cubrid_get_charset</methodname>
|
|
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
This function returns This function returns the current CUBRID connection
|
|
charset.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>conn_identifier</parameter></term>
|
|
<listitem><para>The CUBRID connection.</para></listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
A string that represents the CUBRID connection charset; on success.
|
|
</para>
|
|
<para>
|
|
&false; on failure.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<example>
|
|
<title><function>cubrid_get_charset</function> example</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
printf("%-30s %s\n", "CUBRID PHP Version:", cubrid_version());
|
|
|
|
printf("\n");
|
|
|
|
$conn = cubrid_connect("localhost", 33088, "demodb");
|
|
|
|
if (!$conn) {
|
|
die('Connect Error ('. cubrid_error_code() .')' . cubrid_error_msg());
|
|
}
|
|
|
|
$db_params = cubrid_get_db_parameter($conn);
|
|
|
|
while (list($param_name, $param_value) = each($db_params)) {
|
|
printf("%-30s %s\n", $param_name, $param_value);
|
|
}
|
|
|
|
printf("\n");
|
|
|
|
$server_info = cubrid_get_server_info($conn);
|
|
$client_info = cubrid_get_client_info();
|
|
|
|
printf("%-30s %s\n", "Server Info:", $server_info);
|
|
printf("%-30s %s\n", "Client Info:", $client_info);
|
|
|
|
printf("\n");
|
|
|
|
$charset = cubrid_get_charset($conn);
|
|
|
|
printf("%-30s %s\n", "CUBRID Charset:", $charset);
|
|
|
|
cubrid_disconnect($conn);
|
|
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs;
|
|
<screen>
|
|
<![CDATA[
|
|
CUBRID PHP Version: 8.3.1.0005
|
|
|
|
PARAM_ISOLATION_LEVEL 3
|
|
LOCK_TIMEOUT -1
|
|
MAX_STRING_LENGTH 1073741823
|
|
PARAM_AUTO_COMMIT 0
|
|
|
|
Server Info: 8.3.1.0173
|
|
Client Info: 8.3.1
|
|
|
|
CUBRID Charset: iso8859-1
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</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:"~/.phpdoc/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
|
|
-->
|