I'm new in php.
i want to send the file with
header("Location: $file.zip");
then delete it with
unlink("$file.zip");
Unfortunately it doesn't work , and always the header shows the 404 file not found error page, because unlink delete the file before the header send it!
how can i delay the unlink for 20 sec till the file reach the user then delete it.
Thank you