Pipe Output to HTML File
Moderator: General Moderators
Pipe Output to HTML File
How can I redirect my output in PHP from a monitor to an html file such that I can bring up the file and display my page as if it would have been originally output to the monitor ?
Re: Pipe Output to HTML File
Code: Select all
ob_start();
//Render page
$html = ob_get_clean();
file_put_contents('/path/to/page.html',$html);