Solved

PHP to Oracle via ODBC

Posted on 2003-11-17
2
1,678 Views
Last Modified: 2013-12-12
Hi all,
I'm running PHP and IIS on a Win XP machine trying to connect to an Oracle database on another Windows machine.

I have the Oracle client installed and an ODBC DSN setup which connects succesfully. I have a test PHP script with the following line:

$conn = odbc_connect("DSNNAME", "USERNAME", "PASSWORD");

and I get the following error:

Warning: odbc_connect(): SQL error: Specified driver could not be loaded due to system error 5 (Oracle in OraHome92)., SQL state IM003 in SQLConnect in c:\inetpub\wwwroot\blahblah\oracletest.php on line 6

I use that code to connect to SQL server on other machines using a similar DSN connection. I can't work out why this is not working.

Any ideas?
0
Comment
Question by:djguvnor
2 Comments
 
LVL 1

Author Comment

by:djguvnor
ID: 9779541
Sorted it.  I gave IUSR_{MACHINENAME} read / execute permissions to the whole c:\oracle folder.
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 10941379
Closed, 250 points refunded.
modulo
Community Support Moderator
Experts Exchange
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PHP Installer 5 37
Why will this INSERT statement not insert the date? 2 20
reverse engineer .sql from php files 11 34
Undefined variable problem 5 22
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo‚Ķ
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question