knojiyak — 2014-05-27T01:35:39-04:00 — #1
There is a new problem which i m facing.
The question is that.
How to Connect two databases on two different servers using php ?
I hope it possible. if is it possible please someone tell me how will i do......
felgall — 2014-05-27T01:41:09-04:00 — #2
You connect to both the same way - just use a different field to hold the connection pointer.
The four parameters to pass to set up the connection are userid, password, server and database. You might also need to make sure that the appropriate port is open when connecting to a database on a server other than localhost.
knojiyak — 2014-05-27T01:54:01-04:00 — #3
Can you tell me which parameters is pass in server and how.
felgall — 2014-05-27T02:38:30-04:00 — #4
Either a domain name or an ip address (without any protocol on the front. You may need to add the mysql port number on the end after a colon.
For example if the database is on the same server as the PHP then use either 'localhost' or '127.0.0.1' or your domain name. For a remote server use the ip address of that server or the domain name eg. 'example.com'
knojiyak — 2014-05-27T11:12:17-04:00 — #5
can we axis server database from localhost using this method and how i got the ip address of domain name.