Re: Solaris/ODBC.
| From: | Rune Kallhovd | Date: | Wed, 31 May 2000 08:37:51 +0000 |
| Subject: | Re: Solaris/ODBC. | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-127@lists.php.net to get a copy of this message | ||
Hi John,
Have you tried to switch the order of your odbc_connect args?
e.g. $connection = odbc_connect("userid","passwd","machine_name")
This should probably work :-)
John Margaritsanakis wrote:
>
> Does anyone know the solution to this? It seems to be a common enough
> thing to do, but I've looked around and can't find an obvious way to resolve
> it.
> Basically, recently we decided to have our front-end handled by PHP
> scripts on Unix, and the databases themselves on NT on our SQL server. I've
> already been using PHP for a while on msql and MySQL, so I figured it was
> going to be pretty much easy.
> Thing is, $connection = odbc_connect("DSN=<machine
> name>","<userid>","<passwd>") doesn't return
> name>anything; it doesn't even
> return 0. The script reaches that and just dies an unfortunate death. Even
> or die (...) won't return anything helpful.
> After looking around on the FAQs and tutorials, I assume my problem is
> the lack of ODBC drivers for Solaris; if it's not, and someone can propose a
> solution, please let me know. Otherwise, I've been looking around for some
> Solaris drivers but all I can find is Sybase's, and there seems to be some
> problem with their ftp site in the section I need.
> Thanks for any replies.
>
> /-------------------------------------------------------------
> | John Margaritsanakis, Programmer/Analyst
> | Istos Web Publishing Solutions and Services Agency
> |-------------------------------------------------------------
> | Crime doesn't pay as well as politics.
> |-------------------------------------------------------------
> | "And when we meet again my hand shall hold a Silmaril
> | from the Iron Crown; for you have not looked the last
> | upon Beren son of Barahir." The Silmarillion.
> \-------------------------------------------------------------
--
====== Rune Kallhovd, CORENA Norge AS ======
= Software Engineer =
= P.O.Box 1024, N-3601 Kongsberg, NORWAY =
= Tlf: +47 32 73 7448, Fax: +47 32 73 6877 =
== CORENA Home Page: http://www.corena.no ==