Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

PHP to Oracle via ODBC

Posted on 2003-11-17
2
Medium Priority
?
1,686 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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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.
Suggested Courses

772 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