almahdi
08-09-2005, 05:53 AM
I've been trying to connect to an Oracle server via PHP but it doesn't work..
Here is an explanation of the problem:
Server is running on Windows 2000 Server, PHP over IIS.
I am trying to connect to a remote Oracle Server using odbc... it seems to connect to the microsoft driver instead of the oracle one i want to use and configured.
$conn=@odbc_connect("orasrv","user","pass");
if ($conn) {
echo "Successfully connected to Oracle.\n";
}
else echo "Error Connecting<br>";
if (@odbc_error())
{
echo odbc_errormsg();
}
else
{
echo "Successfully connected to Oracle.\n";
}
I wish if anyone could help me in writing an ODBC connection string.
Here is an explanation of the problem:
Server is running on Windows 2000 Server, PHP over IIS.
I am trying to connect to a remote Oracle Server using odbc... it seems to connect to the microsoft driver instead of the oracle one i want to use and configured.
$conn=@odbc_connect("orasrv","user","pass");
if ($conn) {
echo "Successfully connected to Oracle.\n";
}
else echo "Error Connecting<br>";
if (@odbc_error())
{
echo odbc_errormsg();
}
else
{
echo "Successfully connected to Oracle.\n";
}
I wish if anyone could help me in writing an ODBC connection string.
