Re: [PHP4BETA] linux iodbc-2.50 driver
| From: | jean-hugues bogaert | Date: | Tue, 22 Feb 2000 23:10:58 +0000 |
| Subject: | Re: [PHP4BETA] linux iodbc-2.50 driver | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-10675@lists.php.net to get a copy of this message | ||
hi andrew,
thanks for the time spent answering me
but stiil cannot work
I added as you said
putenv("ODBCINI=/usr/local/lib/odbc.ini");
putenv("ODBC_LIBS=/usr/lib");
putenv("LD_LIBRARY_PATH=/usr/lib");
phpinfo();
$con=
odbc_connect("SERVER=goldorak;DATABASE=ispaltavista;UID=jj;PWD=azerty;","","");
in the ODBC panel of phpinfo() I have:
Key Value
Active Persistent Links 0
Active Links 0
ODBC library iodbc
ODBC_INCLUDE (empty)
ODBC_LFLAGS (empty)
ODBC_LIBS (empty)
and in the environnement panel
ODBCINI /usr/local/lib/odbc.ini
ODBC_LIBS /usr/lib
LD_LIBRARY_PATH /usr/lib
so it did pick up the env variables but still the same !?
Andrew Hill a écrit :
> Hi Jean,
>
> You should check via a phpinfo(); tag to see if the ODBCINI variable is
> being picked up. I would imagine that is not being seen.
>
> I would recommend defining your ODBCINI, LD_LIBRARY_PATH, ODBCINST etc via a
> putenv(); in your script. If phpinfo(); shows them, you should not have
> this problem.
>
> Best regards,
> Andrew
> ----------------------------------------------------
> Andrew Hill
> Technical Support Consultant
> OpenLink Software
> http://www.openlinksw.com
> Universal Database Connectivity Technology Providers
>
> -----Original Message-----
> From: jean-hugues bogaert
> [mailto:jean-hugues.bogaert@internet-telecom.net]
> Sent: Tuesday, February 22, 2000 5:43 PM
> To: PHP4
> Subject: [PHP4BETA] linux iodbc-2.50 driver
>
> I compiled php4b4 pl1 with iodbc
> and I have the following error message with the code:
>
> $con=
>
> odbc_connect("SERVER=goldorak;DATABASE=mydb;UID=azerty;PWD=azerty;","","");
>
> Warning: SQL error: [iODBC][Driver Manager]Data source name not found
> and no default driver specified. Driver could not be loaded, SQL state
> IM002 in SQLConnect
>
> how do we specify the default driver? since I have set it in the
> /usr/local/lib/odbc.ini like
> [goldorak]
> driver = /usr/lib/libiodbc.so
> ...
> and also set the env variable
> ODBCINI=/usr/local/lib/odbc.ini
>
> any body help?
>
> jhb
>
> http://www.iodbc.org/odbc-phpHOWTO.html
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net