ldoozer Posted January 27, 2008 Share Posted January 27, 2008 Hello, I am trying to roll out about 10 websites that are all the same appart from some area specific information local to the site. here's my thinking. If i know the majority of the content will be the same over all the sites and I want to keep them all up to date, is it the right way to go bout this using <?php include('http://somedomain/homepage.php'); ?> in each site to call in content from a central area ie another server? Link to comment https://forums.phpfreaks.com/topic/88073-many-sites-calling-in-same-content-from-another-url-using-include/ Share on other sites More sharing options...
mem0ri Posted January 27, 2008 Share Posted January 27, 2008 Depends on your personal goals with each of the 10 sites, the performance hit you're willing to take in loading from a separate server (and whether that server is in the same datacenter or across the world will play a factor there), the security settings of each site (some server-configs won't allow remote-file loading), and whether or not you're willing to have all 10 sites go down at once if your 'main' server goes down. Link to comment https://forums.phpfreaks.com/topic/88073-many-sites-calling-in-same-content-from-another-url-using-include/#findComment-450722 Share on other sites More sharing options...
ldoozer Posted January 28, 2008 Author Share Posted January 28, 2008 Thank you very much for that advise, all really important points. I will look in to those questions and report back. Link to comment https://forums.phpfreaks.com/topic/88073-many-sites-calling-in-same-content-from-another-url-using-include/#findComment-451067 Share on other sites More sharing options...
ldoozer Posted January 28, 2008 Author Share Posted January 28, 2008 Forgot to say, can you suggest an alternative way of sharing content Link to comment https://forums.phpfreaks.com/topic/88073-many-sites-calling-in-same-content-from-another-url-using-include/#findComment-451068 Share on other sites More sharing options...
rajivgonsalves Posted January 28, 2008 Share Posted January 28, 2008 well you can include it the way you specified however to be noted that it will include the output of that script... and not the script code... Link to comment https://forums.phpfreaks.com/topic/88073-many-sites-calling-in-same-content-from-another-url-using-include/#findComment-451070 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.