Forum Moderators: open

Message Too Old, No Replies

Connect a page to a database on another server

connect a php page to a database located on another server?

         

e_u_r_o

4:48 pm on Dec 28, 2006 (gmt 0)

10+ Year Member



Hello Webmasters,
is it possible to connect a php page located on server A to a database located on server B? both servers in different countries?
If you could tell me how?
Thanks for the help.

coopster

4:55 pm on Dec 28, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Some databases allow remote connections, but that solution typically is not ideal. It opens itself to all sorts of issues. What will your page look like if the primary server cannot connect to the remote database server at any given time? Empty page content? And security is a whole new issue to monitor! Just some thoughts for you to consider.

e_u_r_o

4:03 pm on Dec 29, 2006 (gmt 0)

10+ Year Member



mh... i see... well, i think i can start forgetting about it...

We have 2 sites, and they must be in the same server because they use the same database. That's why wordering if was possible this, so this way google sees the ip from one, and the ip of the other as totally different websites, and also we would increase visits in two different countries.