What I meant was - can I take a straight MySQLi connection file and modify it manually so that it becomes a dynamic one, i.e., when I am connecting locally use the server's IP address, but when I am connecting from the domain, use "localhost"? I should think so but wanted to be sure.