I am trying to build a page dynamically using the file_put_contents() function. I am wondering if this is possible?
My file (our_employees.php) builds a dynamic page by querying several data sources and returning the results.
Is it possible to use the file_put_contents() function to create a new page which has the rendered results of the our_employees.php page as the content?
Wrong syntax but, trying to do:
file_put_contents("our_employees.html", RENDERED RESULTS OF our_employees.php);