RE: [PHP-DB] Troubles in ODBC Land

From: Date: Mon, 27 Aug 2001 18:56:22 +0000
Subject: RE: [PHP-DB] Troubles in ODBC Land
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-11863@lists.php.net to get a copy of this message
Jonathan, You should be getting some errors if the odbc_connect is failing - what are they? Typical problems include forgetting to set ODBCINI and LD_LIBRARY_PATH envrionment variables in your script (via putenv(); ) Also, you may wish to use --with-iodbc instead of --with-unixodbc - it comes with diagnostic tools such as odbctest. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Data Integration Technology Providers > -----Original Message----- > From: Jonathan Hilgeman [mailto:jhilgeman@ecx.com] > Sent: Monday, August 27, 2001 2:07 PM > To: php-db@lists.php.net > Subject: [PHP-DB] Troubles in ODBC Land > > > I'm on a FreeBSD 4.2 box running Apache 1.3.14+OpenSSL with mod_php4 > (4.0.3). I am attempting to set up ODBC for this box, and it's giving me > problems. > > First, I installed unixODBC (www.unixodbc.org), which went fairly smooth. > Second, I installed myODBC for UNIX via the ports directory, which also > seemed to install fine. > Third, I modified the mod_php4 Makefile to include --with-unixODBC and > compiled it. Everything seemed to go through fine, and Apache restarted at > the end. > > When I went to test the function, I got a "Page Cannot be Displayed" error > (IE 5.5). If I try removing the line that uses odbc_connect(...), it will > print out the request variables. Only when odbc_connect is present in the > code, will it break. > > $conn_id=odbc_connect(); > > I have tried this with a DSN name and a username and password, but it does > not work. Any ideas, anyone? > > - Jonathan > > > > -- > 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 (#11863) next »