Jump to content

How to read back html from a popup on a new server? Can I ?


whitedragond

Recommended Posts

Ok, so I've been thinking about a problem and was wondering...

 

 

On my page, I can open a link in a new window, using a target or whatever.

 

After the popup is loaded, is there way (from the source page) to go into that popup and read what html has been generated?

 

 

 

example:

 

http://www.<server>.com/popup.php

 

That page would generate a popup/new window linking to phpfreaks.com.  On that page, it shows my login time:

Total time logged in: 34 minutes.

 

So I would want my popup.php page to open that window and then read in how long I've been logged in.

 

 

Any ideas?

 

thanks

You could read the contents of the popup(that is, the webpage the popup contains) with PHP, either with file_get_contents() or with cURL

 

You could use some AJAX to link to a file which does the above, and updates your main page. Seems a touch pointless though.

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.