I have recently developed a CMS. I need a way in which I can "duplicate" the system many times without actually replicating the code. This means future code updates are global.
Any ideas on how I should go about doing this? 😕
不清楚。呵呵。
MOD EDIT: Approximate translation: "It is not clear. Ha-ha."
@: Please note that English is the primary language of the board; please post in English for the community to understand!
Any more suggestions?
You can have apache serve on * (will serve server DocumentRoot) and serve content based on the $_SERVER['SERVER_NAME'] variable using PHP. (I am currently doing this to run a network of 100+ sites on the same base code and database)
You could also tell PHP to prepend and append certain files via php.ini (prepend_file and append_file I believe)
Hope that helps