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:[EMAIL PROTECTED]]
> Sent: Tuesday, August 28, 2001 4:15 PM
> To: [EMAIL PROTECTED]
> 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" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > 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:[EMAIL PROTECTED]]
> > > Sent: Tuesday, August 28, 2001 4:05 PM
> > > To: [EMAIL PROTECTED]
> > > 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: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> > >
> > >
> >
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to