I need to know if a user selected download then clicked the cancel button, which is not the same as readfile having an error. I have inspected the count returned by the rea
Use this comment on php.net : http://www.php.net/manual/en/function.fread.php#72716
On fclose you would be able to determine if file has been downloaded successful, because your are checking if user aborted connection with connection_status()