Hi, I've got a series of duplicate sites running, not 100% duplicates but similar and they're all part of the same network of sites.
The thing is, I need certain pages of the copied sites to pull their information from the main site. But not the entire database should be pulled from the main site. To clarify:
http://www.milliondollarhomepageformilliondollarhomepages.com
is the main site. and
http://www.milliondollarhomepageforpeople.com is one of the satellite sites. This site (and all the others) needs to pull its FAQ, and blog information from the database of my main feeder site.
The problem: Right now I've tried having the faq.php page include a specific to this purpose configure_millions.php file from the original site using a full length url like so:
include("http://www.milliondollar.....configure_millions.php");
this configure file has got a login and connection string to the database of the main site. it connects to the database successfully (otherwise it would give an error) but for whatever reason the faq.php ignores the data from the main site's tables and still prints out the data from its own database...huh?
i changed the include_once() command calling its own database into the above mentioned include() statement but somehow those variables are not getting replaced with the new information.
NOTE: if I change the configure file database connection details in the configure.php file of the satellite site to login into the main database then it works and the entire site's data is pulled from the main database, but this is not what i want because certain pages are of course site specific, whereas others such as faq and blog can be duplicates of the faq and blog from the main site.
Help is appreciated.