title: Download existing file from server to client using php
body: <p>I'm trying to make a distant client able to download an existing file(csv) named "source.csv" in my local machine using php.<br>
  After downloading the file the client should have a file named <code>sourceCopy.csv</code>with the same content as the source file.</p>
  
  <p>Here's what I've tried :</p>
  
  <pre><code>$file_url = 'source.csv';
  
  header('Content-Type: application/csv');
  
  header("Content-Transfer-Encoding: Binary");
  
  header('Content-disposition: attachment; filename="sourceCopy.csv"');
  
  readfile($file_url); 
  </code></pre>
  
  <p>The file is downloaded but it doesn't match the source file !</p>