PDA

View Full Version : PHP connection to remote server



Squareburger
07-12-2011, 08:20 AM
I have a database that needs to exist in two locations, one on bluehost, the other on a work server. Best methods to connect outside the Bluehost relm? This is what I'm using...

$dbc = mysqli_connect('othersite.com/fileserver', 'username', 'password', 'database');

The connection should be up soon, just wanted to check and see if there is more to it than what I'm thinking...

Thanks

Square