You need the Oracle cliente libraries installed where you have PHP for
this to work.

the third parameter in OCILogon() is the connection string configured in
tnsnames.ora ($ORACLE_HOME/network/admin)

Let's say that you make connection to Oracle using sqlplus:
User: scott
pass: tiger
dbstring: test

this in PHP would be: $conn = OCILogon("scott", "tiger", "test");


-William


El mar, 30-03-2004 a las 15:52, Adam Williams escribió:
> Hi, what is the syntax for using ocilogon() to connect to a remote server?  
> The remote server's name is zed.mdah.state.ms.us (ip is 10.8.5.4) and the 
> database is zed.aleph0.  Locally on zed I can do 
> ociogon("user","pw","zed.alpeh0") and connect fine, but on a remote server 
> I try ociogon("user","pw","[EMAIL PROTECTED]") but it errors out with an 
> oci_open_server error.  I tried going to www.php.net/ocilogon but the page 
> doesn't exist, so does anyone know how the proper connect line to 
> connect to a remote server that runs oracle?  Thanks!

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

Reply via email to