I think the best way to accomplish the task would be to write your variables/content to a file on execution, send the file "content-disposition : inline", then delete the file...
Like this:
** The line "$FileContent=chunk_split(base64_encode($FileConte n t));" above should NOT have the spaces between the n and the t
Let me know if that is the answer you're looking for!
David V.
JustSellMore.com