niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » IBM DB2
Connect to DB2 database through PHP WITHOUT ODBC ?
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
Dan Scott
*nix forums beginner


Joined: 08 Jun 2005
Posts: 21

PostPosted: Fri Feb 25, 2005 11:04 am    Post subject: Re: Connect to DB2 database through PHP WITHOUT ODBC ? Reply with quote

Dan Scott wrote:
Quote:
Markus Keuthmann wrote:

Hi,
is it possible to connect to a DB2 database through PHP WITHOUT ODBC
like in MySQL?

Example MySQL:
// Open the database connection and use the sample
// database
$connection = mysql_connect("localhost","user1","xxxx");
mysql_select_db("sample", $connection);

Best regards
Markus


Check developerWorks tomorrow for an article (by yours truly) that
describes how to compile the Unified ODBC extension directly against the
DB2 CLI libraries. It's "ODBC" in name only at that point.

Dan

Update: The article is now available at
http://www.ibm.com/developerworks/db2/library/techarticle/dm-0502scott/

Dan
Back to top
Dan Scott
*nix forums beginner


Joined: 08 Jun 2005
Posts: 21

PostPosted: Thu Feb 24, 2005 12:32 am    Post subject: Re: Connect to DB2 database through PHP WITHOUT ODBC ? Reply with quote

Markus Keuthmann wrote:
Quote:
Hi,
is it possible to connect to a DB2 database through PHP WITHOUT ODBC like in MySQL?

Example MySQL:

// Open the database connection and use the sample
// database
$connection = mysql_connect("localhost","user1","xxxx");
mysql_select_db("sample", $connection);

Best regards
Markus

Check developerWorks tomorrow for an article (by yours truly) that
describes how to compile the Unified ODBC extension directly against the
DB2 CLI libraries. It's "ODBC" in name only at that point.

Dan
Back to top
Ian
*nix forums Guru Wannabe


Joined: 02 Aug 2005
Posts: 262

PostPosted: Wed Feb 23, 2005 10:30 pm    Post subject: Re: Connect to DB2 database through PHP WITHOUT ODBC ? Reply with quote

Markus Keuthmann wrote:
Quote:
Hi,
is it possible to connect to a DB2 database through PHP WITHOUT ODBC like in MySQL?

Example MySQL:

// Open the database connection and use the sample
// database
$connection = mysql_connect("localhost","user1","xxxx");
mysql_select_db("sample", $connection);

Best regards
Markus

Although the PHP interface to DB2 uses the unified odbc_* functions,
my understanding is that they are coded to use DB2 CLI.

They do *not* require an ODBC driver manager to function properly.
Back to top
Markus Keuthmann
*nix forums beginner


Joined: 23 Feb 2005
Posts: 1

PostPosted: Wed Feb 23, 2005 12:10 pm    Post subject: Connect to DB2 database through PHP WITHOUT ODBC ? Reply with quote

Hi,
is it possible to connect to a DB2 database through PHP WITHOUT ODBC like in MySQL?

Example MySQL:

// Open the database connection and use the sample
// database
$connection = mysql_connect("localhost","user1","xxxx");
mysql_select_db("sample", $connection);

Best regards
Markus
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 3:42 am | All times are GMT
navigation Forum index » Databases » IBM DB2
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Move Oracle 10g database to another location Selt Server 0 Fri Jul 21, 2006 2:14 pm
No new posts database Share Memory Limit (2 GB ) in a Instance is tota... sadanjan@gmail.com IBM DB2 0 Fri Jul 21, 2006 12:57 pm
No new posts Connect to remote MySQL server Martin PHP 2 Fri Jul 21, 2006 8:20 am
No new posts Creating relational view for an ODBC result set? antilog@gmail.com Server 0 Fri Jul 21, 2006 5:56 am
No new posts A webserver (PHP 5) with a few database server (MySQL) ¥|¥J PHP 2 Fri Jul 21, 2006 1:43 am

Satellite TV | Mortgage Calculator | Pacotes Reveillon Salvador | Hotels in Rome | Just Holden Commodores
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1602s ][ Queries: 20 (0.0804s) ][ GZIP on - Debug on ]