【发布时间】:2013-10-03 16:59:05
【问题描述】:
下载完成后,我需要将下载状态设置为 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 . "'");
感谢您的帮助
【问题讨论】:
-
Liska - 欢迎来到 SO!
-
嗨,Tomáš,您找到解决问题的方法了吗?
-
嗨,我没有发现任何正确的东西:(
标签: php x-sendfile