RE: [PHP-DB] ODBC Woes

From: Date: Tue, 28 Aug 2001 20:29:17 +0000
Subject: RE: [PHP-DB] ODBC Woes
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-11927@lists.php.net to get a copy of this message
Jonathan, Passing different configs should be as simple as passing different $dsn values in, and configure the info in your odbc.ini file. 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: Tuesday, August 28, 2001 4:15 PM > To: php-db@lists.php.net > Subject: Re: [PHP-DB] ODBC Woes > > > I am attempting to use oPAYc (www.opayc.com) as a central method > of payment > processing. In order to pass information like different store configs or > certificates at runtime, I need to pass them in the DSN string area. I'm > using iODBC right now. > > - Jonathan > > "Andrew Hill" <ahill@openlinksw.com> wrote in message > news:NDBBKFNCBCHANEGAKONKEEGPJKAA.ahill@openlinksw.com... > > Nope, it depends on the driver manager you are using, and I believe the > > first example has been deprecated in nearly all cases. Why do > you need to > > use the first? > > > > Just use variables: > > > > $dsn="dsnname"; > > $uid="user"; > > $pwd="password"; > > > > odbc_conenct($dsn, $uid, $pwd) > > > > 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: Tuesday, August 28, 2001 4:05 PM > > > To: php-db@lists.php.net > > > Subject: [PHP-DB] ODBC Woes > > > > > > > > > Okay, all I need to know is this: > > > Some people say that they can only connect with: > > > > > > odbc_connect("DSN=Datasource;UID=username;PWD=password","",""); > > > > > > Others say that doesn't work, and that they can only connect with: > > > odbc_connect("Datasource","username","password"); > > > > > > I am confused. I can use the second example (I'm on PHP 4.0.3), > > > but not hte > > > first, although I need to use the first example. Is there some sort of > > > switch that lets you decide what format you can follow? > > > > > > - 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 > > > > > > > > > > > > -- > 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 (#11927) next »