File download php 403 Forbidden
<p>We are trying to download a mp3 file, we create an iframe in the page and set its source:</p>

<pre><code>my_iframe.attr('src',"dl.php?path="+mp3_path+"&amp;name="+mp3_name);
</code></pre>

<p>mp3 files are set to 777 permission and are accessible, for example:</p>

<p><a href="http://www.gandaldina.org/mp3/Lectures/2013-09-19_Paragraph-30.mp3" rel="nofollow">http://www.gandaldina.org/mp3/Lectures/2013-09-19_Paragraph-30.mp3</a></p>

<p>dl.php file has this contest:</p>

<pre><code>&lt;?php 
    header("Content-Type: application/octet-stream");
    if(isset($_GET['name'])){
        $name = $_GET['name'];
        header("Content-Disposition: attachment; filename=\"$name\"");
    }
    if(isset($_GET['path'])){
       $path = str_replace(' ', '%20', $_GET['path']);
       readfile($path);
    }
    exit;
?&gt;
</code></pre>

<p>Go to this link and click download icons in the audio player, you will get 403 error in console.</p>

<p><a href="http://gandaldina.org/en/lectures-%D8%A7%D9%84%D9%85%D8%AD%D8%A7%D8%B6%D8%B1%D8%A7%D8%AA/" rel="nofollow">http://gandaldina.org/en/lectures-%D8%A7%D9%84%D9%85%D8%AD%D8%A7%D8%B6%D8%B1%D8%A7%D8%AA/</a></p>

<p>Can anybody help solving this error?</p>