Thanks for the reply, the users upload a .dat file which gets extracted and parsed and the script spits out a bunch of information based on the content. Since they do have to upload files to the server and it has to be extracted, I have the files uploaded and named based on a sequential counter so that each are unique and I know how many of times it's been used (I have the script delete the files at the end of the script)--the trouble is I don't know how to save the output at all other than brute-force doubling every print statement and pushing it to a file.