file downloading through headers
<p>All i need help in downloading a file through headers its working fine but the problem is that the file is place in a folder and i don't understand how to give path for that specific file. the file downloads always give me empty file. My basic sanario is that i click a link(image) for download a file on page named(documents.php) which send me to the other page named download.php.in that page i set header for downloading the clicked file like </p>

<p>this is a link (document.php)</p>

<pre><code>&lt;a href="download.php?title=&lt;?=$arr['title']?&gt; "&gt;&lt;img src="images/xl_icn.jpg" alt="" width="19" height="20" /&gt;&lt;/a&gt;
</code></pre>

<p>this is header(download.php)</p>

<pre><code>header('Content-type: application/vnd.openxmlformats-officedocument.wordprocessingml.document');

header("Content-Disposition: attachment; filename='".$_GET['title']."'");

if(isset($_SESSION)){
  header('Location: documents.php');
}
</code></pre>

<p>and after downloading it send me back to the documents.php page but the files which i want to download is in folder uploads/documents and i dont know how to download that files placed in uploads/documents. </p>
