deleting a file after user download it
Posted
by Ahmet vardar
on Stack Overflow
See other posts from Stack Overflow
or by Ahmet vardar
Published on 2010-04-14T23:08:18Z
Indexed on
2010/04/14
23:13 UTC
Read the original article
Hit count: 323
php
Hi,
i am using this for sending file to user
header('Content-type: application/zip');
header('Content-Length: ' . filesize($file));
header("Content-Disposition: attachment; filename="file.zip");
readfile($file);
i want to delete this file after user download it, how can i do this ?
thx
© Stack Overflow or respective owner