I need some piece of PHP script (or function) that can load a complete webpage including AJAX parts and images, I mean by giving the URL it returns me a complete HTML.
Up to now i have used "simple_html_dom" and some Curl based functions but none of these work for AJAX parts.
For this to work, the library probably has to simulate a browser with JavaScript, load the page and wait for all elements to load/transform, before taking the HTML.
It must be free, ideally open source.
can load a complete web page
? cURL will easily return you all the HTML content. If you really want to make a perfect copy with scripts and css running perfectly the easiest way might simply be to make aniframe
.