Determining successful download using php readfile

后端 未结 3 1543
甜味超标
甜味超标 2020-12-10 09:30

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

3条回答
  •  旧时难觅i
    2020-12-10 10:14

    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()

提交回复
热议问题