Q: sending file (soap response) to browser instead of saving on server Hi i created a php script that sends a soaprequest to a soapserver. The soapserver makes a file that i want to get back. 
I can create the file but so far i need to save it on the server. 
Here an example of my code:
//  creating some variables for the files i receive from the soap server
$timeStamp  = Time();
$msgFile        .= 'hpoutput/'. $timeStamp . '_messageFile.txt';
$dlfFile        .= 'hpoutput/'. $timeStamp . '_'. $array["return"]["files"]["fileName"];

// saving the messagefile to the server
$var_str    = var_export($array["return"]["engineMessage"], true);
file_put_contents($msgFile, $var_str);

// saving the actual output file to the server 
$var_str    = serialize($array["return"]["files"]["fileOutput"]);
file_put_contents($dlfFile, $var_str);

Questions:
- Can i send the created file directly to the browser, without saving it on the server?
- If this isn't possible, how can i remove (clean up) my temp space?
