2010-03-28 22:10:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 06:46:52 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-06-20 22:25:43 +00:00
|
|
|
<refentry xml:id="function.dbase-close" xmlns="http://docbook.org/ns/docbook">
|
2005-02-06 03:10:01 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>dbase_close</refname>
|
|
|
|
<refpurpose>Closes a database</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
2005-02-06 03:10:02 +00:00
|
|
|
<methodsynopsis>
|
|
|
|
<type>bool</type><methodname>dbase_close</methodname>
|
2016-10-28 10:53:32 +00:00
|
|
|
<methodparam><type>resource</type><parameter>dbase_identifier</parameter></methodparam>
|
2005-02-06 03:10:02 +00:00
|
|
|
</methodsynopsis>
|
2005-02-06 03:10:01 +00:00
|
|
|
<para>
|
|
|
|
Closes the given database link identifier.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
|
|
&reftitle.parameters;
|
|
|
|
<para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>dbase_identifier</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The database link identifier, returned by <function>dbase_open</function>
|
|
|
|
or <function>dbase_create</function>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
|
|
|
&return.success;
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2016-10-28 10:53:32 +00:00
|
|
|
|
|
|
|
<refsect1 role="changelog">
|
|
|
|
&reftitle.changelog;
|
|
|
|
<informaltable>
|
|
|
|
<tgroup cols="2">
|
|
|
|
<thead>
|
|
|
|
<row>
|
|
|
|
<entry>&Version;</entry>
|
|
|
|
<entry>&Description;</entry>
|
|
|
|
</row>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<row>
|
|
|
|
<entry>dbase 7.0.0</entry>
|
|
|
|
<entry>
|
|
|
|
<parameter>dbase_identifier</parameter> is now a <type>resource</type>
|
|
|
|
instead of an <type>int</type>.
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</informaltable>
|
|
|
|
</refsect1>
|
|
|
|
|
2005-02-06 03:10:01 +00:00
|
|
|
<refsect1 role="examples">
|
|
|
|
&reftitle.examples;
|
|
|
|
<para>
|
|
|
|
<example>
|
|
|
|
<title>Closing a dBase database file</title>
|
|
|
|
<programlisting role="php">
|
2005-01-29 23:23:50 +00:00
|
|
|
<![CDATA[
|
|
|
|
<?php
|
|
|
|
|
|
|
|
// open in read-only mode
|
|
|
|
$db = dbase_open('/tmp/test.dbf', 0);
|
|
|
|
|
|
|
|
if ($db) {
|
2005-02-06 03:10:01 +00:00
|
|
|
// read some data ..
|
|
|
|
|
|
|
|
dbase_close($db);
|
2005-01-29 23:23:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
]]>
|
2005-02-06 03:10:01 +00:00
|
|
|
</programlisting>
|
|
|
|
</example>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
|
|
&reftitle.seealso;
|
|
|
|
<para>
|
|
|
|
<simplelist>
|
|
|
|
<member><function>dbase_open</function></member>
|
|
|
|
<member><function>dbase_create</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
|
|
|
|
-->
|