Re: IBM DB2
| From: | Jeff Warrington | Date: | Mon, 28 Aug 2000 21:49:06 +0000 |
| Subject: | Re: IBM DB2 | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-2427@lists.php.net to get a copy of this message | ||
In article <002001c00bc4$699bfd20$e340fea9@bellatlantic.net>,
carlosi@bellatlantic.net ("Carlos Irigaray") wrote:
Have you installed the IBM DB2 connect personal
client? Your webserver needs to have this installed
to access DB2 databases.
See:
http://www-4.ibm.com/software/data/db2/db2connect/
Jeff
> Thanks a lot!
>
> It works but only for a local database. To connect to a database on
> another machine:
>
> Do you specify somehow the machine name (or IP) in the $DB_Database
> variable?
>
>
>
> Thanks again.
>
>
>
>
> ----- Original Message -----
> From: Jeff Warrington <jaydub@bossanova.com> To: <php-db@lists.php.net>
> Sent: Monday, August 21, 2000 4:32 PM Subject: Re: [PHP-DB] IBM DB2
>
>
>> In article <003f01c0098f$bfcc8980$e340fea9@bellatlantic.net>,
>> carlosi@bellatlantic.net ("Carlos Irigaray") wrote:
>>
>> Yes you need to use the odbc_* functions
>>
>> connect to database via odbc_pconnect or odbc_connect exec queries with
>> odbc_exec() parse queries with odbc_num_rows results with odbc_result
>>
>> $DB_Database = "TEST";
>> $DB_User = "db2user";
>> $DB_Passwd = "db2pass";
>>
>> $pConnID = @odbc_pconnect($DB_Database, $DB_User, $DB_Passwd)
>>
>> etc....
>>
>> Jeff Warrington
>>
>>
>> > ------=_NextPart_000_003C_01C0096E.387024E0
>> > Content-Type: text/plain; charset="iso-8859-1"
>> > Content-Transfer-Encoding: quoted-printable
>> >
>> > Hi. I built PHP on a Linux server running Apache with the =
>> > --with-ibm-db2 option. I am a little confused as how I will use the
>> > API
>> > =
>> > to connect to a DB2 server running on another machine. BTW the DB2 =
>> > server is running on an NT server.
>> >
>> > From what I could understand I need to use the odbc function set and
>> > use
>> > = them as if they were db2 functions.
>> >
>> >
>> > Has anybody done this and understand my confusion?
>> >
>> >
>> > Thanks in advance.
>> >
>> > ------=_NextPart_000_003C_01C0096E.387024E0--
>> >
>>
>> --
>> 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
>>
>
>