Forum Moderators: coopster
As I have full control over both sites is there a way to mark certain paragraphs in the first site, like
<!-- start -->
text text
text text
<!-- end -->
and then capture everything bewteen <!-- start --> and <!-- end --> and include on the second site?
Would be most grateful for any replies. Thanks!
On the second page, which copies from the first one, place this where you want the info to be copied:
$fp = fopen("firstpage.php","r");
if(!feof($fp)){
$buffer = fgets($fp,5000);
$x = 0;
if($buffer == "<!-- start of chunk of text -->"){$x = 1;}
if($buffer == "<!-- end of chunk of text -->"){$x = 0;}
if($x == 1){
echo $buffer;
}
}
fclose($fp);