RPeraltaJr
5/12/2017 - 6:47 PM

PHP to HTML. Auto create an HTML file from PHP file contents.

PHP to HTML. Auto create an HTML file from PHP file contents.

<?php 
ob_start(); 

/* --------------------
    Your custom code
-------------------- */

// echo buffer into index.html file for tenstreet
$page_contents = ob_get_contents();
ob_end_clean();

file_put_contents("tmc_lp_experienced.html", $page_contents);

echo $page_contents;

?>