title: How to download a .vcf file correctly
body: <p>I'd like to know, how can I realise a Vcard download.
  That's my current code:</p>
  
  <pre><code>$path = "../../media/resources/";  
  $file = "someName.vcf";  
  
  header('Content-Type: text/x-vCard');  
  header('Content-Disposition: attachment; filename= "'.$file.'"');  
  header('Content-Length: '.filesize($path.$file));  
  header('Connection: close');  
  
  readfile($path.$file);
  </code></pre>
  
  <p>Unfortunately, it does only give out the content from the .vcf file.
  How can I give this vcard to the user as a download?</p>