2002-11-05 15:45:38 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2005-02-06 03:10:01 +00:00
|
|
|
<!-- $Revision: 1.7 $ -->
|
|
|
|
<refentry id="function.dba-handlers">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>dba_handlers</refname>
|
|
|
|
<refpurpose>List all the handlers available</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
|
|
|
<methodsynopsis>
|
|
|
|
<type>array</type><methodname>dba_handlers</methodname>
|
|
|
|
<methodparam choice="opt"><type>bool</type><parameter>full_info</parameter></methodparam>
|
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
|
|
|
<function>dba_handlers</function> list all the handlers supported by this
|
|
|
|
extension.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
|
|
&reftitle.parameters;
|
|
|
|
<para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>full_info</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Turns on/off full information display in the result. The default is
|
|
|
|
&false;.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
|
|
|
Returns an array of database handlers. If <parameter>full_info</parameter>
|
|
|
|
is set to &true;, the array will be associative with the handlers names as
|
|
|
|
keys, and their version information as value. Otherwise, the result will be
|
|
|
|
an indexed array of handlers names.
|
|
|
|
</para>
|
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
When the internal cdb library is used you will see
|
|
|
|
<literal>cdb</literal> and <literal>cdb_make</literal>.
|
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
|
|
&reftitle.examples;
|
|
|
|
<para>
|
|
|
|
<example>
|
|
|
|
<title><function>dba_handlers</function> Example</title>
|
|
|
|
<programlisting role="php">
|
2005-01-31 00:21:24 +00:00
|
|
|
<![CDATA[
|
|
|
|
<?php
|
2002-11-05 15:45:38 +00:00
|
|
|
|
2005-01-31 00:21:24 +00:00
|
|
|
echo "Available DBA handlers:\n";
|
|
|
|
foreach (dba_handlers(true) as $handler_name => $handler_version) {
|
2005-02-06 03:10:01 +00:00
|
|
|
// clean the versions
|
|
|
|
$handler_version = str_replace('$', '', $handler_version);
|
|
|
|
echo " - $handler_name: $handler_version\n";
|
2005-01-31 00:21:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
]]>
|
2005-02-06 03:10:01 +00:00
|
|
|
</programlisting>
|
|
|
|
&example.outputs.similar;
|
|
|
|
<screen>
|
2005-01-31 00:21:24 +00:00
|
|
|
<![CDATA[
|
|
|
|
Available DBA handlers:
|
|
|
|
- cdb: 0.75, Revision: 1.3.2.3
|
|
|
|
- cdb_make: 0.75, Revision: 1.2.2.4
|
|
|
|
- db2: Sleepycat Software: Berkeley DB 2.7.7: (08/20/99)
|
|
|
|
- inifile: 1.0, Revision: 1.6.2.3
|
|
|
|
- flatfile: 1.0, Revision: 1.5.2.4
|
|
|
|
]]>
|
2005-02-06 03:10:01 +00:00
|
|
|
</screen>
|
|
|
|
</example>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
2002-11-05 15:45:38 +00:00
|
|
|
|
|
|
|
<!-- 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
|
|
|
|
-->
|