Ideas Needed for a Base Code System

Posted by Tegan Snyder on Stack Overflow See other posts from Stack Overflow or by Tegan Snyder
Published on 2010-04-04T21:17:15Z Indexed on 2010/04/04 21:23 UTC
Read the original article Hit count: 228

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

© Stack Overflow or respective owner

Related posts about php5

Related posts about web-applications