Ideas Needed for a Base Code System
- by Tegan Snyder
I've developed a PHP web application that is currently in need of a strategic restructuring.
Currently when we setup new clients we give them the entire code base on a subdomain of our main domain and create a new table for them in the database.
This results in each client having the entire codebase, meaning when we make bug changes, fixes we have to go back and apply them independently across all clients and this is a pain.
What I'd like to create is a base code server that holds all the core PHP files.
base.domain.com
Then all of our clients (client.domain.com) will only need a few files:
config.php would have the database
connection information.
index.php - displays the login box if
session non-existant, otherwise it
loads baseline code via remote
includes to base.domain.com.
My question is does my logic seem feasible? How do other people handle similar situations by having a base code?
Also.... Is it even possbile to remotely include PHP files from base.domain.com and include them in client.domain.com?
Thanks,
Tegan