RE: [PHP4BETA] linux iodbc-2.50 driver

From: Date: Tue, 22 Feb 2000 21:43:07 +0000
Subject: RE: [PHP4BETA] linux iodbc-2.50 driver
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-10673@lists.php.net to get a copy of this message
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

« previous php.version4 (#10673) next »