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
I feel you need curl, so that you can save any pages' output. Use curl with returntransfer true. and do whatever you want with the output.