Re: ORACLE 803 ODBC PROBLEM under php4 (winnt)
| From: | Mathijs Brands | Date: | Sun, 18 Jun 2000 22:43:05 +0000 |
| Subject: | Re: ORACLE 803 ODBC PROBLEM under php4 (winnt) | ||
| References: | 1 | Groups: | php.dev php.general php.windows |
| Request: | Send a blank email to php-dev+get-21700@lists.php.net to get a copy of this message | ||
On Mon, Jun 19, 2000 at 12:07:21AM +0200, Lupus Arctos allegedly wrote:
> Hi,
>
> Oracle 8.0.3 ODBC connect doesn't work under win98 and winnt, if I use php4, but php3
> works properly.
> It's the error message:
>
> <--
> Warning: SQL error: [Oracle][ODBC][Ora]ORA-06401: NETCMN: invalid driver designator ,
> SQL state S1000 in SQLConnect in d:\apache\htdocs\odbc.php on line 3
> -->
>
> The odbc.php contains:
>
> <?
> $conn = odbc_connect('ORA8','SCOTT','TIGER',0);
> $res = odbc_exec($conn, 'SELECT * FROM emp');
> odbc_result_all($res);
> odbc_close($conn);
> ?>
>
> Is it php4 bug???
>
> I tried native php4 from www.php.net
> , va.php.net/~andi/php-4.0.1dev-Win32.zip
> and download.swwwing.com/php3/core.
> I think it's all mentioned in php-windows list.
>
> Any idea...?
>
> L'arct
You tried both PHP3 & PHP4 on the same machine, right? Have you checked
what ODBC drivers you have set up? If not, go to the ODBC setup thingy
(I have a dutch Windows installation, so I don't know what the english
version calls it) and choose the System DSN tab. ORA8 should be listed.
If it's not, you've found your problem.
Mathijs