abdfahim Posted February 1, 2011 Share Posted February 1, 2011 Dear, I have page1.php where there is a iframe with source page2.php. How can I read page2.php? Both the pages are in external website, and if I directly point www.thatsite.com/page2.php, it shows blank page (no error). But if I load www.thatsite.com/page1.php in FIREFOX and use SAVE FRAME AS function, it does save page2.php successfully. Thanks, Link to comment https://forums.phpfreaks.com/topic/226332-read-iframe-content-from-an-external-site/ Share on other sites More sharing options...
abdfahim Posted February 1, 2011 Author Share Posted February 1, 2011 Hi, is it possible? anybody has any idea? Thanks, Link to comment https://forums.phpfreaks.com/topic/226332-read-iframe-content-from-an-external-site/#findComment-1168446 Share on other sites More sharing options...
BlueSkyIS Posted February 1, 2011 Share Posted February 1, 2011 i suspect page2.php is using javascript to make sure it's inside a frame. but can't tell without seeing it. Link to comment https://forums.phpfreaks.com/topic/226332-read-iframe-content-from-an-external-site/#findComment-1168497 Share on other sites More sharing options...
abdfahim Posted February 2, 2011 Author Share Posted February 2, 2011 The link is http://www.dsebd.org/latest_share_price_scroll_l.php I want to read the price table of the stocks and dump in mysql. Now, the price list is a separate page because 1) If i read this link with file_get_contents or curl, it doesn't return the table 2) If you view the source, you will see a IFRAME embeded 3) There is a cool option in FirFox name "Save Frame As". If you use that, you can save on the table (iframe content) as separate html page. I just need this HTML page. I already have written the code to purse that html page. Thanks, Link to comment https://forums.phpfreaks.com/topic/226332-read-iframe-content-from-an-external-site/#findComment-1168692 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.