title: Why I'm unable to download a pdf file which is already present onto server?
body: <p>Following is the code:</p>
  
  <pre><code>define(ADMIN_ROOT,'/var/www/abc/pqr/web/control/');
  $filename = $test_data['test_name'];
  $flname = ADMIN_ROOT.'modules/tests/test_pdfs/'.$filename;
  header("Content-Type: application/pdf");
  header("Cache-Control: no-cache");
  header("Accept-Ranges: none");      
  header("Content-Disposition: attachment; filename=\"" .$flname. ".pdf\"");
  </code></pre>
  
  <p>The pdf file is already present over there at the directory</p>
  
  <pre><code>/var/www/abc/pqr/web/control/modules/tests/test_pdfs/
  </code></pre>
  
  <p>Also it has all the permissions assigned.But when I try to download a file, it's downloading some different file with same name but the file is not in a format which could be opened. In short the desired file is not getting downloaded. Can anyone please help me in correcting my issue?</p>