RE: [PHP-INST] ODBC Openlink Connection problems..

From: Date: Wed, 20 Dec 2000 14:12:12 +0000
Subject: RE: [PHP-INST] ODBC Openlink Connection problems..
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-1296@lists.php.net to get a copy of this message
Fredrik, Unknown Host means either: 1. the Host field in the DSN is not 'pingable' from the client - try changing it to an IP address - verify networking issues and possible permissions 2. there is a mal-formed DSN name. - check your odbc.ini for both [ and ] around the top key and subsequent parameters area - check that the names in [ and ] match exactly in both areas in the odbc.ini - check that php doesn't expect to be passed a slightly differenct connect attribute, eg. "DSN=DSN_Name" instead of "DSN_Name" Please open a free support case at http://www.openlinksw.com/support/suppindx.htm if the problem persists. Best regards, Andrew ---------------------------------------------------- Andrew Hill Director Technology Evangelism OpenLink Software http://www.openlinksw.com XML & E-Business Infrastructure Technology Provider > -----Original Message----- > From: Fredrik.Palm@notes.sema.se [mailto:Fredrik.Palm@notes.sema.se] > Sent: Wednesday, December 20, 2000 2:40 AM > To: php-install@lists.php.net > Subject: [PHP-INST] ODBC Openlink Connection problems.. > > > Hi all ! > > I've managed to configure, make and install PHP w. Openlink and the > functions are there alright. But when I try to connect to my DSN set up in > odbc.ini, I get the following error : > > Warning: SQL error: [OpenLink][ODBC]RPC: Unknown host, SQL state 08004 in > SQLConnect in /var/www/html/fpm/connect.php on line 31 > can not connect to DSN: DSN=STFI > > The environment variables are there : > > putenv("LD_LIBRARY_PATH=/usr/local/openlink/odbcsdk/lib"); > putenv("ODBCINSTINI=/usr/local/openlink/bin/odbcinst.ini"); > putenv("ODBCINI=/usr/local/openlink/bin/odbc.ini"); > > and I can successfully print them from my .php page (even before I use > putenv), and the DSN works fine in odbctest supplied with openlink.. > > now I'm stuck !!! .. > > Anyone feel friendly ? > > // Fredrik > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net > For additional commands, e-mail: php-install-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.install (#1296) next »