You need to install the Oracle 8i client on your Apache/PHP machine. It
has the libraries necessary to compile PHP. Then after everything
compiles, you can set your tnsnames.ora file to point over to the real
database on the other machine. Or you can just build a connection string
like this:
// Setup DSN
$db =
"(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=x.x.x.x)(PORT=1521))(CONNECT_DATA=(SID=TEST)))";
// Make connection
OCILogon("scott", "tiger", $db);
Where x.x.x.x is the IP of the database machine.
This is how I did it. I had Apache/PHP on Linux and Oracle on NT.
(Blech!)
HTH,
Brian Mauter
[EMAIL PROTECTED]
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]