1

ダウンロードが完了したら、ダウンロード ステータスを 0 に設定する必要があります。x-sendfile を使用していますが、ダウンロードが完了した後、ステータスを設定しません。

私のコード:

header("X-Sendfile: $file");
header("Content-type: application/octet-stream");
header('Content-Disposition: attachment; filename="' . $name . '"');

mysql_query("UPDATE `downloads` SET `download_status` = '1' WHERE `id` = '" . $last_down . "'");

手伝ってくれてありがとう

4

1 に答える 1