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? -

java - How to create Table using Apache PDFBox -

mpi - Why is MPI_Bsend not returning error even when the buffer is insufficient to accommodate all the messages -