I am not sure what you mean...
if you want output from a script to be downloaded you need to send the following headers:
header('Content-Type: application/octetstream');
header('Content-Disposition: filename="file.ext"');
header('Pragma: no-cache');
header('Expires: 0');
you can then send any content with echo or such and it will be in the d/l file i use this method with WDDX for backup