[PHP-DEV] PHP 4.0 Bug #7781: Unable to connect to ODBC Datasource From: ties <email protected>
Date: 11/13/00

From: ties <email protected>
Operating system: RedHat 7
PHP version: 4.0.1pl2
PHP Bug Type: ODBC related
Bug description: Unable to connect to ODBC Datasource

This error i get when connecting to a unixODBC datasource:

Warning: SQL error: [unixODBC][Driver Manager]Data source name not found, and no default driver specified, SQL state IM002 in SQLConnect in
                                                 /var/www/html/test.php4 on line 8

unixODBC 1.8.12 is correctly setup, I can access my Postgres database via the supplied 'DataManager' application. But somehow there seems to be no connection possible between PHP and the ODBC Driver manager. These are the compile options I used for PHP:

./configure --with-apxs=/usr/sbin/apxs --target=i386-redhat-linux --prefix=/usr --with-config-file-path=/etc --disable-debug --enable-pic --enable-inline-optimization --disable-static --with-exec-dir=/usr/bin --with-regex=system --with-gettext --with-gd --enable-debugger --with-jpeg-dir=/usr --with-png --with-zlib --with-gdbm --enable-safe-mode --enable-sysvsem --enable-sysvshm --enable-track-vars --without-mysql --with-unixODBC=/usr/local

-- 
Edit Bug report at: http://bugs.php.net/?id=7781&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>