p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   PHP Databases (http://p2p.wrox.com/forumdisplay.php?f=97)
-   -   PHP in one server, Database in another... (http://p2p.wrox.com/showthread.php?t=32437)

Sho August 12th, 2005 10:57 AM

PHP in one server, Database in another...

This is the first time I venture into PHP developement, and I've got some "limitations" so to speak.

As the topic states, The php files will be located in a Linux based webserver, while a Postgres database, the one I'm trying to connect with the php files of the first one, is located on another Linux based computer.

I'm also Linux newbie, so my question is this: Does the webserver need to be configured in some way so it can connect to the Postgres Database (like using an ODBC in Windows)? And if so, what would these modifications be?

For your reply, thanks in advance.

anshul August 14th, 2005 07:33 AM

To connect MySQL db from PHP, we use mysql_connect(). Parameters to this functions are IP/name of db server, username, password and optional MySQL daemon socket.

There're will other functions to use other db than MySQL.

ODBC is required to connect to MS db like MS Access.

Please see PHP documentation.


All times are GMT -4. The time now is 01:11 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.