internet.maestro Posted November 30, 2006 Share Posted November 30, 2006 Hello all,I am writing new php application which will be used by several sites.All sites will use same script (all files), but every will have its own config.php file.I would like to place all necessary files to separate directory and all sites should share them, so all sites will be updated.for e.x. structure will be:| - script directory|- site1.com dir config.php|- site2.com dir config.php|- site3.com dir config.phpDoes anyone have idea how to organize and share files?Thanks For Your Time ! Quote Link to comment https://forums.phpfreaks.com/topic/28930-several-sites-sharing-the-same-script/ Share on other sites More sharing options...
keeB Posted December 2, 2006 Share Posted December 2, 2006 Quick question..are they all on the same host? Quote Link to comment https://forums.phpfreaks.com/topic/28930-several-sites-sharing-the-same-script/#findComment-133744 Share on other sites More sharing options...
448191 Posted December 2, 2006 Share Posted December 2, 2006 Maybe I'm missing something here, but I don't see the problem.The example dir structure you posted will work just fine. Even if the scripts are on a different host you could still include them (with allow_url_fopen set to true in php.ini). Quote Link to comment https://forums.phpfreaks.com/topic/28930-several-sites-sharing-the-same-script/#findComment-133895 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.