Answers for "Save current page as HTML to server"

0

Save current page as HTML to server

<?php
// Start the buffering //
ob_start();
?>
Your page content bla bla bla bla ...

<?php
echo '1';

// Get the content that is in the buffer and put it in your file //
file_put_contents('yourpage.html', ob_get_contents());
?>
Posted by: Guest on April-24-2021

Code answers related to "Save current page as HTML to server"

Browse Popular Code Answers by Language