Any pointers gratefully followed.. had a really good look around the forum.
I am re-writing my CMS, up to now only 3 domains are using it. I hope it will be dozens in the future.
I have been taking big steps now with oop, really got to grips with php5 and even start to understand how MVCs work.
This is all great - but for the life of me I cant work out how I can centralise all my php code to the degree I want - so that a future upgrade does not end up with me opening and ftping the same file on dozens of domains.
Imagine something like this on 24 domains:
Code: Select all
// this would be news.php
// heres an example news page, styles, headers, script and content all generated on the fly
<?
page_ID=24;//cause this is in domain #24, so gets their css, their login, their content etc
include('head.php');
do_news(24);
include('foot.php');
?>What if a link in this news page links from news.php to events.php in the same domain?
I still want real urls to give out to the public.
Has anyone else come across this and if so what is your strategy?
Will be using LAMP (MySql) and all domains will be on the same server.
Yota.