RE: [PHP] Where do I specify a DSN? v0.2
David, The error probably has to do with your PHP environment being unable to locate your odbc.ini file. You will need to set your odbc.ini location as well as the location of the driver manager. Check out this HOWTO http://www.iodbc.org/odbc-phpHOWTO.html to get an idea of how it all works - the instructions should be similar for UnixODBC. Hint - look at the putenv() calls. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access Virtuoso Universal Server -Original Message- From: David Busby [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 2:55 PM To: php-general Subject: [PHP] Where do I specify a DSN? v0.2 List, Guess I should be more specific: Heres line four: $db = odbc_connect(somedsn,sa, ); My System: RedHat 7.3/Apache/PHP 4.1.2-7 I'm getting this error message...I think I just need to define the DSN...is that done in /etc/odbc.ini? Or what? /B 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/index.php on line 4@ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Where do I specify a DSN?
List, I'm getting this error message...where does it come from? /B 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/index.php on line 4 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Where do I specify a DSN?
[snip] 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/index.php on line 4 [/snip] Could we see line 4? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Where do I specify a DSN?
It depends on your operating system. This is a Windows system level configuration option. For example, in Windows 2000, you'd configure DSN's in Start-Settings-Control Panel-Administrative Tools-Data Sources(ODBC) -Original Message- I'm getting this error message...where does it come from? 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/index.php on line 4 This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Where do I specify a DSN? v0.2
List, Guess I should be more specific: Heres line four: $db = odbc_connect(somedsn,sa, ); My System: RedHat 7.3/Apache/PHP 4.1.2-7 I'm getting this error message...I think I just need to define the DSN...is that done in /etc/odbc.ini? Or what? /B 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/index.php on line 4 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Where do I specify a DSN? v0.2
What kind/version of DB? -Original Message- From: David Busby [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 2:55 PM To: php-general Subject: [PHP] Where do I specify a DSN? v0.2 List, Guess I should be more specific: Heres line four: $db = odbc_connect(somedsn,sa, ); My System: RedHat 7.3/Apache/PHP 4.1.2-7 I'm getting this error message...I think I just need to define the DSN...is that done in /etc/odbc.ini? Or what? /B 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/index.php on line 4@ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php