RE: [PHP-DB] ODBC Woes
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]
Re: [PHP-DB] ODBC Woes
if($TFM_Doesnt_Have_Anything_About_It == 1) { $Shut_Yer_Unhelpful_Trap = 1; $You->RTFM && see(); } "Yves Glodt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... if ($RTFM == 1) { int odbc_connect (string dsn, string user, string password [, int cursor_type]) } else { $do_this='http://php.net/download-docs.php'; } On Tuesday 28 August 2001 22:05, Jonathan Hilgeman wrote: > 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]
Re: [PHP-DB] ODBC Woes
On Tuesday 28 August 2001 22:05, Jonathan Hilgeman wrote: > 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 if ($RTFM == 1) { int odbc_connect (string dsn, string user, string password [, int cursor_type]) } else { $do_this='http://php.net/download-docs.php'; } -- 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]
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]
RE: [PHP-DB] ODBC Woes
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-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]