I am looking to host a few of my own sites with similiar content between the sites. In many cases content will be identical (except for name of comany which I thought would be brought in as variable through config file). My question is,if I want to use a common script for all sites, how do I set this up? Do I place the scripts of the doc root and use absolute reference to reference the file. For the html I was thinking of using smarty templates.
Basically, if each site uses the exact same scripts, I do not want to have to create and update multiple scripts for the different sites.
Any help or guidance would be helpful.
Thanks
Site Architecture
Moderator: General Moderators
-
Sphen001
- Forum Contributor
- Posts: 107
- Joined: Thu Mar 10, 2005 12:24 pm
- Location: Land of the Beaver
Hi,
Where are all the sites hosted? If it's one machine, you're in a lot of luck. Just put all the files in a base directory, and for each site, open a config file with info specific to that site. Just have a way to change the name for each site. It's pretty easy with Smarty.
Hope this helps
Sphen001
Where are all the sites hosted? If it's one machine, you're in a lot of luck. Just put all the files in a base directory, and for each site, open a config file with info specific to that site. Just have a way to change the name for each site. It's pretty easy with Smarty.
Hope this helps
Sphen001