Re: [PHP3] PHP & Oracle
[email protected] (Andrej Trobentar)
| Newsgroups | php.general |
|---|---|
| Organization | Rikom d.o.o. |
| Message-ID | <[email protected]> |
Dieter Kneffel wrote:
> What is the best way to access Oracle8 using
> PHP with the database on a different server than the
> webserver? Do I have to use some odbc or can I
> connect to it no matter if local or remote just as with
> mysql ?
>
> - Dieter
If you have 8i you can access it with the OCI functions ( 8i functions under
www.php.net/manual ).
I access it like that:
$conn = OCILogon("username", "pass", "remote_db");
If you don't have 8i installed then use
$conn = Ora_logon("username@remote_db", "pass");
Hope that helps a little,
--
AnD.