<?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.8 $ --> <refentry id="function.ora-logon"> <refnamediv> <refname>ora_logon</refname> <refpurpose>Open an Oracle connection</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>resource</type><methodname>ora_logon</methodname> <methodparam><type>string</type><parameter>user</parameter></methodparam> <methodparam><type>string</type><parameter>password</parameter></methodparam> </methodsynopsis> <para> Establishes a connection between PHP and an Oracle database. </para> <para> Connections can be made using <productname>SQL*Net</productname> by supplying the <acronym>TNS</acronym> name to <parameter>user</parameter> like this: <informalexample> <programlisting role="php"> <![CDATA[ <?php $conn = Ora_Logon("user@TNSNAME", "pass"); ?> ]]> </programlisting> </informalexample> </para> <para> If you have character data with non-ASCII characters, you should make sure that <envar>NLS_LANG</envar> is set in your environment. For server modules, you should set it in the server's environment before starting the server. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>user</parameter></term> <listitem> <para> The user name. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>password</parameter></term> <listitem> <para> The password associated with <parameter>user</parameter>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns a connection identifier on success, or &false; on failure. Details about the error can be retrieved using the <function>ora_error</function> and <function>ora_errorcode</function> functions. </para> </refsect1> <refsect1 role="changelog"> &reftitle.changelog; <para> <informaltable> <tgroup cols="2"> <thead> <row> <entry>&Version;</entry> <entry>&Description;</entry> </row> </thead> <tbody> <row> <entry>5.1.0</entry> <entry> &oracle.deprecated; </entry> </row> </tbody> </tgroup> </informaltable> </para> </refsect1> <refsect1 role="notes"> &reftitle.notes; <para> &oracle.replacement.desc; <simplelist> <member><function>oci_connect</function></member> <member><function>oci_new_connect</function></member> </simplelist> </para> </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:"../../../../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 -->