2014-09-05 07:44:07 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 08:37:21 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-06-14 02:34:50 +00:00
|
|
|
<!-- State: experimental -->
|
2005-09-04 19:39:32 +00:00
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<reference xml:id="ref.pdo-firebird" xmlns="http://docbook.org/ns/docbook">
|
2013-05-23 17:38:21 +00:00
|
|
|
<?phpdoc extension-membership="bundledexternal" ?>
|
2013-09-17 13:17:14 +00:00
|
|
|
<title>Firebird Functions (PDO_FIREBIRD)</title>
|
|
|
|
<titleabbrev>Firebird (PDO)</titleabbrev>
|
2005-08-12 02:03:50 +00:00
|
|
|
<partintro>
|
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<section xml:id="pdo-firebird.intro">
|
2005-08-12 02:03:50 +00:00
|
|
|
&reftitle.intro;
|
|
|
|
<para>
|
2005-09-20 08:21:37 +00:00
|
|
|
PDO_FIREBIRD is a driver that implements the PHP Data Objects (PDO)
|
2013-09-17 13:17:14 +00:00
|
|
|
interface to enable access from PHP to Firebird database.
|
2005-08-12 02:03:50 +00:00
|
|
|
</para>
|
|
|
|
</section>
|
2011-01-26 22:48:38 +00:00
|
|
|
&reference.pdo-firebird.configure;
|
2008-12-10 01:21:35 +00:00
|
|
|
&reference.pdo-firebird.constants;
|
2005-08-12 02:03:50 +00:00
|
|
|
</partintro>
|
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<refentry xml:id="ref.pdo-firebird.connection">
|
2005-08-12 02:03:50 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>PDO_FIREBIRD DSN</refname>
|
2013-09-17 13:17:14 +00:00
|
|
|
<refpurpose>Connecting to Firebird databases</refpurpose>
|
2005-08-12 02:03:50 +00:00
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
|
|
|
<para>
|
|
|
|
The PDO_FIREBIRD Data Source Name (DSN) is composed of the following elements:
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term>DSN prefix</term>
|
|
|
|
<listitem>
|
2005-08-12 03:31:18 +00:00
|
|
|
<para>
|
|
|
|
The DSN prefix is <userinput>firebird:</userinput>.
|
|
|
|
</para>
|
2005-08-12 02:03:50 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2012-02-29 05:03:14 +00:00
|
|
|
<term><literal>dbname</literal></term>
|
2005-08-12 02:03:50 +00:00
|
|
|
<listitem>
|
2005-08-12 03:31:18 +00:00
|
|
|
<para>
|
|
|
|
The name of the database.
|
|
|
|
</para>
|
2005-08-12 02:03:50 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2012-02-29 05:03:14 +00:00
|
|
|
<term><literal>charset</literal></term>
|
2005-08-12 02:03:50 +00:00
|
|
|
<listitem>
|
2005-08-12 03:31:18 +00:00
|
|
|
<para>
|
2009-04-07 10:22:41 +00:00
|
|
|
The character set.
|
2005-08-12 03:31:18 +00:00
|
|
|
</para>
|
2005-08-12 02:03:50 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2012-02-29 05:03:14 +00:00
|
|
|
<term><literal>role</literal></term>
|
2005-08-12 02:03:50 +00:00
|
|
|
<listitem>
|
2005-08-12 03:31:18 +00:00
|
|
|
<para>
|
2009-04-07 10:22:41 +00:00
|
|
|
The SQL role name.
|
2005-08-12 03:31:18 +00:00
|
|
|
</para>
|
2005-08-12 02:03:50 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2019-11-23 15:36:44 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term><literal>dialect</literal></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The dialect of the database; either <literal>1</literal> or <literal>3</literal>.
|
|
|
|
If not specified, the dialect defaults to <literal>3</literal>.
|
|
|
|
Available as of PHP 7.4.0.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-08-12 02:03:50 +00:00
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
|
|
&reftitle.examples;
|
|
|
|
<para>
|
|
|
|
<example>
|
2013-09-17 16:04:35 +00:00
|
|
|
<title>PDO_FIREBIRD DSN example with path</title>
|
2005-08-12 02:03:50 +00:00
|
|
|
<para>
|
|
|
|
The following example shows a PDO_FIREBIRD DSN for connecting to
|
2013-09-17 13:17:14 +00:00
|
|
|
Firebird databases:
|
2005-08-12 02:03:50 +00:00
|
|
|
<programlisting><![CDATA[
|
2013-09-17 16:04:35 +00:00
|
|
|
firebird:dbname=/path/to/DATABASE.FDB
|
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
</para>
|
|
|
|
</example>
|
|
|
|
<example>
|
|
|
|
<title>PDO_FIREBIRD DSN example with port and path</title>
|
|
|
|
<para>
|
|
|
|
The following example shows a PDO_FIREBIRD DSN for connecting to
|
|
|
|
a Firebird database using hostname port and path:
|
|
|
|
<programlisting><![CDATA[
|
|
|
|
firebird:dbname=hostname/port:/path/to/DATABASE.FDB
|
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
</para>
|
|
|
|
</example>
|
|
|
|
<example>
|
|
|
|
<title>PDO_FIREBIRD DSN example with localhost and path to employee.fdb on Debian system</title>
|
|
|
|
<para>
|
|
|
|
The following example shows a PDO_FIREBIRD DSN for connecting to
|
|
|
|
a Firebird database employee.fdb using localhost:
|
|
|
|
<programlisting><![CDATA[
|
|
|
|
firebird:dbname=localhost:/var/lib/firebird/2.5/data/employee.fdb
|
2005-08-12 02:03:50 +00:00
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
</para>
|
|
|
|
</example>
|
2019-11-23 15:36:44 +00:00
|
|
|
<example>
|
|
|
|
<title>PDO_FIREBIRD DSN to connect to a dialect 1 database</title>
|
|
|
|
<para>
|
|
|
|
The following example shows a PDO_FIREBIRD DSN for connecting to
|
|
|
|
a Firebird database test.fdb which has been created using dialect 1.
|
|
|
|
This is only supported as of PHP 7.4.0.
|
|
|
|
</para>
|
|
|
|
<programlisting>
|
|
|
|
<![CDATA[
|
|
|
|
firebird:dbname=localhost:/var/lib/firebird/2.5/data/test.fdb;charset=utf-8;dialect=1
|
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
</example>
|
2005-08-12 02:03:50 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
</reference>
|
|
|
|
<!-- 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"
|
2005-08-12 02:03:50 +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
|
|
|
|
-->
|