1.

Solve : PHP/Javascript read page contents with frames?

Answer»

Hey guys,

I'm a little STUCK here. Usually I use file_get_contents() function in PHP to read page's contents but there are some pages that have javascript and frames embedded. In result, the function only reads the CODE of the script but not the content INSIDE the frame. I did some googling and found out that I would have to use javascript to read the contents but I only have basic knowledge of javascript.

Has ANYONE done this before? May be someone has a function or could direct me to the right source where I could continue my search.

Any HELP is appreciated and thanks in advance.

- ultimatumHow does javascript get involved? that's client-side.

What you want to do is use file_get_contents, and then parse out the tags, then you can use File_get_contents on the src attribute.
Look into cURL and preg_match.



Discussion

No Comment Found