|
|
 |
| PHP Databases Using PHP in conjunction with databases. PHP questions not specific to databases should be directed to one of the other PHP forums. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the PHP Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other programmers’ questions, win occasional prizes given to our best members, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
|
 |
|
|
 |

March 11th, 2004, 11:05 PM
|
|
Registered User
|
|
Join Date: Mar 2004
Location: mumbai, maharashtra, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Remote Connection to DB2 from PHP
Hi,
I have a DB2 database placed on a different database server (Remote) and I have my PHP pages placed on different server,
I need to connect to the DB2 database from my PHP pages.
Could somebody tell me how to do a remote connection sice my PHP pages are on a different server and my database is on a different server.
Thanks,
Gouree . . .
|

March 12th, 2004, 04:33 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: San Diego, CA, USA.
Posts: 833
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
You can connect to a database on a different machine by specifying the appropriate parameters in the connect function. For example, mysql uses this function:
mysql_connect(<host>, <username>, <password>);
You aren't limited to using a database on the same machine. If it is on the same machine, just use "localhost" for the host.
I think you'll need to use the odbc extension to communicate with IBM DB2.
Take care,
Nik
http://www.bigaction.org/
|

August 11th, 2006, 06:09 PM
|
|
Registered User
|
|
Join Date: Aug 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |