is it possible to redirect a page after a readfile()
<p>HI,</p>

<p>just wondering if it's possible to redirect a page after a readfile(), I tried to use Header but that doesn't work, also the meta redirect doesn't work either,</p>

<pre><code>header ("Content-Type: application/pdf");

header("Content-Disposition: attachment; filename=$file");
header("Content-Length: $size");

readfile($file_path);  //giving file to costumer
//header('Location:../checkout.php'); doesn't work
//echo ('&lt;meta http-equiv="refresh" content="1;url=../checkout.php"&gt;'); doesnt work
</code></pre>

<p>any help would be appreciated.</p>

<p>thanks</p>
