php header file path
<p>I'm asking for a solution how to make PHP download a file without redirect and without reading file source like in this example:</p>

<pre><code>if(1 == 1)
{
    header("Content-Type: application/xml");
    header("Content-Transfer-Encoding: binary");
    header("Cache-Control: private",false); 
    header("Content-Disposition: attachment; filename=example.xml;" );    
    $file = file_get_contents("file.ext");
    echo file;
}
</code></pre>

<p>I need solution for download witout <code>file_get_contents</code> make the download like <code>mod_rewrite</code>.</p>

<p>Thanks</p>
