I'm having the same issue. I have tried alot everything I can find on the internet. I have set TNS_ADMIN in my environment variables. I keep getting the same error also:
Warning: ocilogon() [function.ocilogon]: _oci_open_server: ORA-12154: TNS:could not resolve the connect identifier specified in c:\Inetpub\wwwroot\index.php on line 2
My code looks like this:
<?
if ($c = OCILogon("sys","lizzie","TEST"))
{
echo "Connection to database successfull!";
OCILogOff($c);
}
else
{
$err = OCIError();
echo $err['message'];
}
?>
Can someone provide a step by step guide that will help alot of us out.
I'm running:
Windows XP Professional w/ SP2
Oracle 9i Database Release 2 Enterprise
PHP 5.0.4
IIS 5
Thanks in advanced
(V)ega