I have a simple web app that people use to keep track of golf scores. This same app is hosted on 4 different domains with 4 different databases. Changes made in one need to be made in all, since it's a collective refining process.
The code is almost identical except for slight changes like the DB connection, title of pages, and a header logo. That info is contained in an include file that is unique to each domain. All pages pull info from that.
What is the best practice for maintaining a single source code and uploading the same version to all domains??