Original Post
I have 2 PHP scripts. One does a lot of data processing and the other acts as an HTML template which "drops in" a few GET values (echo $_REQUEST[...] type stuff). My problem is, I want to SAVE the HTML output from the template to a file from within the first PHP script. Currently, I have been trying file_get_contents, but after about 20 minutes of messing with it, I realized it doesn't work with HTML query strings. Simply put, I need a way to save the HTML output of template.php?key=value to a file with another PHP file.