RE: [PHP-DB] ODBC error

From: Date: Thu, 06 Jul 2000 17:22:38 +0000
Subject: RE: [PHP-DB] ODBC error
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-911@lists.php.net to get a copy of this message
Try setting your $ODBCINSTINI and $ODBCINI $LD_LIBRARY_PATH variables in the envrionment before starting apache/php and also pass them into your script like so: putenv("ODBCINI=/path/to/odbc.ini"); Hope this helps. Best regards, Andrew ---------------------------------------------------- Andrew Hill Professional Services Consultant OpenLink Software http://www.openlinksw.com Universal Database Connectivity Technology Providers -----Original Message----- From: Todd Cary [mailto:todd@aristesoftware.com] Sent: Thursday, July 06, 2000 1:20 PM To: php-db@lists.php.net Subject: [PHP-DB] ODBC error If I execute the following PHP 4 code, I get the list error: <?php $user="SYSDBA"; $password="masterkey"; $host="acct_odbc"; echo "I am before the connect"; $MyOdbc=odbc_connect($host,$user,$password); echo "I am after the connect"; ?> Error: I am before the connect Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in c:\inetpub\wwwroot\db_odbc.php on line 6 I am after the connect With other DBMS's, the Data Source Name works fine. What am I missing? Todd -- Todd Cary Ariste Software todd@aristesoftware.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#911) next »