2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2009-07-11 06:46:52 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-06-20 22:25:43 +00:00
|
|
|
<refentry xml:id="function.dba-popen" xmlns="http://docbook.org/ns/docbook">
|
2005-02-06 03:10:01 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>dba_popen</refname>
|
|
|
|
<refpurpose>Open database persistently</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
|
|
|
<methodsynopsis>
|
|
|
|
<type>resource</type><methodname>dba_popen</methodname>
|
|
|
|
<methodparam><type>string</type><parameter>path</parameter></methodparam>
|
|
|
|
<methodparam><type>string</type><parameter>mode</parameter></methodparam>
|
2005-06-21 13:56:28 +00:00
|
|
|
<methodparam choice="opt"><type>string</type><parameter>handler</parameter></methodparam>
|
|
|
|
<methodparam choice="opt"><type>mixed</type><parameter>...</parameter></methodparam>
|
2005-02-06 03:10:01 +00:00
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
|
|
|
<function>dba_popen</function> establishes a persistent database instance
|
|
|
|
for <parameter>path</parameter> with <parameter>mode</parameter> using
|
|
|
|
<parameter>handler</parameter>.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
|
|
&reftitle.parameters;
|
|
|
|
<para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>path</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Commonly a regular path in your filesystem.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>mode</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
It is <literal>r</literal> for read access, <literal>w</literal> for
|
|
|
|
read/write access to an already existing database, <literal>c</literal>
|
|
|
|
for read/write access and database creation if it doesn't currently exist,
|
|
|
|
and <literal>n</literal> for create, truncate and read/write access.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>handler</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The name of the <link linkend="dba.requirements">handler</link> which
|
|
|
|
shall be used for accessing <parameter>path</parameter>. It is passed
|
|
|
|
all optional parameters given to <function>dba_popen</function> and
|
|
|
|
can act on behalf of them.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
2009-11-09 10:26:08 +00:00
|
|
|
Returns a positive handle on success&return.falseforfailure;.
|
2005-02-06 03:10:01 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
|
|
&reftitle.seealso;
|
|
|
|
<para>
|
|
|
|
<simplelist>
|
|
|
|
<member><function>dba_open</function></member>
|
|
|
|
<member><function>dba_close</function></member>
|
|
|
|
</simplelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
2002-04-15 00:12:54 +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
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2002-04-15 00:12:54 +00:00
|
|
|
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
|
|
|
|
-->
|