开发者

PHP COM Component. How to use it to get the generated HTML by the Browser?

I need to parse a webpage that is generated by JavaScript. I have been investigating the PHP COM Component and I think is this what I need to get the HTML generated by the browser.

My problem is that I can't find how to access the HTML generated by the browser

<?php
$browser = new COM("InternetExplo开发者_运维知识库rer.Application");
$browser->navigate("http://www.yahoo.com");
$browser->Visible = true;
$browser->Width = 700;
$browser->height = 380;
?>

Whit this I'm able to open the browser. Now... how can I go to links and save the HTML generated by the browser?

Can someone give me a clue on this?

Best Regards,


The manual makes me think that $browser->Document would contain the page; see the comment @André left.

Note that it looks like you can check the manual for the invoked .Net object for questions like this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜