Rather than have numerous copies of the same article on several websites, I would like to store the content of the articles on one domain and call that content with php from other domains, something like this:
Code:
<?php require_once("../includes/header.php"); ?>        
<?php include("http://www.othersite.com/library/article-content.txt"); ?>
<?php require_once("../includes/footer.php"); ?>
When I try this, I get:
Warning: include() [function.include]: Failed opening 'http://www.othersite.com/library/article-content.txt' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/othersite/public_html/thissite/library/article-content.php on line 10
Line 10 is
Code:
<?php include("http://www.othersite.com/library/article-content.txt"); ?>
If this is difficult to accomplish, what about storing the article content in mySql?