So, I've got a large number of websites and I want to use a generic/global Terms and Conditions page for all of them. Updating this Terms Page on each site now is a nightmare.
So, I've got the Terms Page set up on one of those websites and plan to use something like this on
www.mysite2.com/terms.php:
<?php include '
http://www.mysite1.com/incs/terms.php' ?>
I've successfully done this with all my Privacy Policy pages.
Here's the catch, the Privacy Policy stays the same across all sites 100% of the time, so a simple include works fine.
But with the Terms Page; they read, ".... your use of MySite2.com (the "website") ...." blah blah blah.
So I want to include something like this:
<p> Your Use of <?php echo $sitename; ?> (the "website') .... </p>
WRAP UP: I have a "Global Terms Page" on ONE website (it's not a full page, just a bunch of text with minimal markup, i.e. <h2><p><ol> etc..... no headers, footers it's an inc file.)This "Global Terms Page" needs to include/print a $variable that is declared from a different site.
So you visit Site2's Terms Page, it pulls the content from Site1's Global Terms Page (which has a echo $variable) and then gets displayed on Site2 (which has the $variable declaration) giving you a complete Terms Page on Site2.
All Sites are on the same server. I've messed around with echos, includes, functions, globals, fopens and can't get it to work. It just displays the sentence with an extra "space" where the site name should be.
Any suggestion? Thanks.