Is there a way to do that ? I owe two different sites in two different host / servers. I need some php routine to connect into the datasource of the another host.
| SitePoint Sponsor |


Is there a way to do that ? I owe two different sites in two different host / servers. I need some php routine to connect into the datasource of the another host.
My SOHO: http://www.contactopuro.com.ar



The answer is on the manual page for mysql_connect(). Something likeThis works well: my hosting provider has a separate database server. My sites are on a different machine, so I have to put the domain name of the DB server in.PHP Code:$link = mysql_connect('example.com', 'mysql_user', 'mysql_password');
Zealotry is contingent upon 100 posts and addiction 200?
Bookmarks