Forum Moderators: coopster
$db1host
$db1user
$db1password
Then on the server where you dont want to put these files make a connection to this file and read the variables out. (you would have to set in your privilages for that user to be able to connect from any host.
Alternatively (assuming you are using mysql) you could set privilages for a specific user and only give them certain privilages on a specific database, or a specific table. So if you are worried about security just use the user who only has SELECT privilages on that specific table, so even if they have the username / password it is no real use to them.
Ally
If I were you, I would set up a user with privileges only to select on those tables, as was already mentioned. Sending the authentication information is not a good idea whether it is "encrypted" or not.