Re: php-install Digest 7 May 2001 12:36:13 -0000 Issue 296
| From: | Brian.J.Mauter | Date: | Mon, 07 May 2001 15:50:16 +0000 |
| Subject: | Re: php-install Digest 7 May 2001 12:36:13 -0000 Issue 296 | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-3052@lists.php.net to get a copy of this message | ||
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
brian.mauter@ua.edu