What approach could someone suggest to save the current page as an HTML file to the server? In this case, also note that security is not an issue.
I
If you meant saving the output of a page in a file, you can use buffering to do that. The function you need to use are ob_start and ob_get_contents.
Your page content bla bla bla bla ...
This will save the content of the page in the file yourpage.html.
yourpage.html