I have this bit of code for downloading a file that works fine, but execution apprently halts after fpassthru
//code
$file_loc="/www/vhosts/htdocs/resumes/".$id."/".$filename;
$content_length="Content-Length: ".$size;
$content_disp='Content-Disposition: attachment; filename='.$filename;
header("Cache-control: max-age=31536000");
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header($content_length);
header("Content-Type: application/octet-stream");
header("Content-Transfer-Encoding: binary");
header($content_disp);
$fb = fopen($file_loc, 'rb');
fpassthru($fb);
$fc = fclose($fileloc);
header("Content-Type: text/html");
// end code
as you can see, what I want to to do is display HTML after the fpassthru is done but the script just stops there apparently. Does anyone know how to continue execution after the fpassthru?