I have a page that gets created with php after a form is submitted. How can i save a copy of that page to a folder called 'archives'?
PHP Saving Files
Have a look at output buffering. Turn buffering on, generate the page, then get and save the contents of the buffer.
what if the page is created with HTML. there are only a few section in it the file that use php code and those are <?php echo $username ?> or $password
ok i have the page being saved with output buffering but now the page no longer displays.
So echo the contents of the buffer as well.