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

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -