Remote database connections in mysql and php is it possible?
i have 2 shared host server(www.nextsoftech.com(ip:184.108.40.206) and www.simpletelecomltd.co.uk (ip:220.127.116.11)). i want to access nextsoftech.com 's database from simpletelecomltd.co.uk 's script.
that's means i stor all script simpletelecomltd.co.uk this server. Would any one help me how can configure
and what is the connect code in php?
In nextsoftech's cPanel you'll need to allow remote MySQL access for the IP address of simpletelecomltd. If you are allowed to do this, then you can simply use mysql_connect (or mysqli, pdo, etc) and pass nextsoftech's IP as the host parameter.