I'm thinking this is probably an environment variable problem. I'm on a W2k Pro machine with Apache v1.3 & PHP v4.3.4. I'm able to connect to Oracle and do whatever from within Apache. But I get the following error if I try from the command prompt:
Oracle: Connection Failed: ORA-12154: TNS:could not resolve service name
Connection string looks a little something like this:
$connection = ora_logon("user@DB.world","user") or die("Couldn't logon to database.");
I'm thinking I need to set some environment variables from within PHP but I haven't had much luck. Anybody run into this before?