Skip to content Skip to sidebar Skip to footer

Get Document Source After Ajax Or Js Action With Php

When I compare the source code of a webpage in the browser with the source code I get from the code below, $data = file_get_contents('http://www.someurl.com/loader.aspx'); it diff

Solution 1:

You will need to use a headless browser that can evaluate JavaScript on the page. One very popular option is PhantomJS.

Then look at PHP PhantomJS to see how you can control this headless browser from your PHP scripts.

Post a Comment for "Get Document Source After Ajax Or Js Action With Php"