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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.