Easysoft ODBC-ODBC Bridge Why cannot Apache/PHP find my odbc.ini file? Why do I get error "Datasource not found and no default driver"? | | Article : | 00979 | | Last Reviewed : | 2nd June 2008 | | Revision : | 1 |
|
When you start Apache with PHP built with ODBC support, PHP immediately allocates an ODBC environment handle. Unfortunately, the OOB searches for the odbc.ini file when an environment handle is created and so your odbc.ini file needs to found at server startup. This can be a nuisance since most people start Apache at machine boot time from an rc script but locate their odbc.ini files in the same directory as their PHP scripts. The best way around this is to put all your DSN definitions in the /etc/odbc.ini (or SYS$ROOT:odbc.ini for VMS) file.
- Products
- Easysoft ODBC-ODBC Bridge
- Applications
- Languages
© 1993 - 2012 Easysoft Limited. All rights reserved.