php - Return value after header -


i use header allow user download file when clicks on button. below code in function.

header('content-disposition: attachment; filename='.date("ymd",$date).".removethis");  echo $data;  exit();  return true; 

but dont catch return value when calling function. possible have exit() , yet have return value function?

the function exit() terminate program immediately. no code execution expected after exit();

exit(); // program terminates // not executed return true; 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -