title: How to download an Azure Storage blob as a local file using PHP?
body: <p>I want to download and save an Azure Storage blob as a file on my local computer using the file name from the Azure Storage.  I'm using the steps from here ( <a href="http://azure.microsoft.com/en-us/documentation/articles/storage-php-how-to-use-blobs/#DownloadBlob" rel="nofollow">tutorial link</a> ) in a file I've called download.php, and I can see the file contents in my browser when I go to download.php.  If I then put a link in index.php to download.php, I can right click the link and "save as", and save the file as myfile.doc.  I can then open myfile.doc succesfully.</p>
  
  <p>index.php:</p>
  
  <pre><code>echo '&lt;a href="http://myserver/dev/download.php" &gt;Click me&lt;/a&gt;';
  </code></pre>
  
  <p>However...
  What I'd like to know is how to get the link to "save as" without the user having to right click.  Also, I have the file name (from Azure Storage) -- but I don't know how to get the file to save using that file name.  How do I get the file to save to the user's Downloads directory with the file name when the user clicks on the link?</p>