Oracle/NT/IIS/PHP

admin

Administrator
Staff member
I have a bare bones NT Server running IIS 4, with PHP 4.0.2 installed as the default binary. I am trying to make a connection to an Oracle 8.0.5 Server which is on the network and I am at a loss. I have tried

$odbcconn = odbc_connect("SID", "ID", "PASS");

and I have also tried

$conn = OCIpLogon("ID/PASS@SID","");

But none work. The ODBC version returns
Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in C:\InetPub\wwwroot\testing\Faxing\connect.php on line 20


And the OCIpLogin returns

call to undefined function. I have placed php_oci8.dll and php_oracle.dll in my cgi-bin directory.

Any help would REALLY be appreciated since I am doing this for work as a "demo" of what can be done with PHP. I am comfortable with PHP on Apache/Linux/MySql but have not had any experience with NT/IIS/Oracle and PHP. I want to make a good impression but I need to connect to an Oracle DB first.

Thanks
 
Back
Top