Jump to content

page1 pulling from page2


zipp

Recommended Posts

my problem;

page1 and page2 are hosted on diffrent servers.

page2 uses:

 

<?
$i=0;
while($i < 100){
$i++;
sleep(1);
echo $i." ";
    flush();
    ob_flush();
}
?>

 

what I want:

I want page1 to display page2 as it is being updated. The best idea came from 8ball who said:

 

The best way you may want to approach this is a mix of PHP and javascript/AJAX. Use AJAX to continually poll page2.php and print the result into page1.php.

 

That is why I decided to make a post in the AJAX forum.

 

Question:

Does anyone have a script i could put on page1 to pull the data from page2, or could you point me to some tutorials/articles?

Link to comment
https://forums.phpfreaks.com/topic/96096-page1-pulling-from-page2/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.