I am new to PHP and learning it step by step. Well I've a download page that I want to be redirected after the download has been completed.
header('Content-type: application/octet-stream');
header('Content-Disposition: attachment; filename="dlink.pdf"');
header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); readfile('dlink.pdf');
header("refresh: 2; auto_works.html");
exit;
This is my download code enclosed within the PHP tag. How can I achieve my directive ? Please help. Could you also mention to me where am I supposed to write the line of code
Thanks