title: download music file to local machine from external server
body: <p>php code to download music file to local machine  from external server.
  My music files are saved in an external server , and my site is in diverent server . How to code to download music file when user clicks on a download link in my main site. I need help please help me .</p>
  
  <p>Thanks for your advice , but i have fixed this problem of mine  using the following code =></p>
  
  <pre><code>    header ("Content-type: audio/mpeg");
              header ("Content-disposition: attachment; filename=soumik10.mp3;");
              header("Content-Length: ".$sz);
              readfile(SONGMAINURL.$server_file);
              exit;
  </code></pre>
  
  <p>Here $sz is the size of my musicfile located in  the external server , which i have found using this code =></p>
  
  <pre><code>    ftp_size($conn_id, $source_server_file);
  </code></pre>