"Frederico Madeia" <[EMAIL PROTECTED]> a écrit dans le message
news: [EMAIL PROTECTED]

...
> How i connect one server running PHP(linux) to other server running
> Oracle(linux) ??
> when i tryed to connect with ora_logon, the server return me: Call to
> undefined function: ora_logon().

1) the oracle extension is not loaded. You need to compile php with it. BUT,
you should use --with-oci8 and not --with-oracle. The "oracle" extension
(ora_logon function and friends) is an old one, it can only connect to an
oracle 7 database. With the "oci" extension (ocilogon function and friends),
you can connect an oracle 7, 8 or 9 database (see
http://fr.php.net/manual/en/ref.oci8.php)
May be http://www.enderunix.org/documents/eng/php_oracle_en.html could help
you too.


2) php compiled with oci extension is not enough. You need the "oracle
client". Unfortunately, for Linux, you can't download it alone. You need to
download the entire oracle database : see
http://otn.oracle.com/software/content.html or ask your DBA : he should be
able to give you this oracle client for linux.


> In php.net describe some functions to connect to oracle,. but how i make
> to do work ???
> I must install oracle on same server that runing php ??

no, you can have two servers.


>
> Tanks.
>

Regards,
Philippe

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to