Get the HTML source of PHP page after load

Hello, I want to get the HTML source of a PHP page after its loaded and write it to a file. How can I do that ?

I’m sure I’ve seen someone post on here a few days ago to do something like

$url = "-insert-your-url-here";
$filename = "-insert-your-local-filename-here";
file_put_contents($filename, file_get_contents($url));

if you want to do it from PHP to a server.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.