deleting a file after user download it
- by Ahmet vardar
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