Jump to content

read IFRAME content from an external site


abdfahim

Recommended Posts

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

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