I have a file called reports.php which has several php and database functions. Upon viewing it in a browser it displays a nicely formatted report. Is there a way I can save the HTML(only) output from this reports.php into a new file (probably html) in a web server ? What i should be able to do is refer back to that new file anytime and be able to load it up on the browser just like it displayed the last time.
Edit: Also, is there a way to check if the process was completed and the new file was created by displaying amessage of some sort? I will need to clear my database after the file creation is done. that's why its important for me to check if the new file was successfully created.