Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

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());
?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Save #current #page #HTML #server
ADD COMMENT
Topic
Name
9+3 =