title: Not getting a "Save/Open file" dialog when clicking on links to files
body: <p>I'm creating html links to files on my server, however when I click the links I do not get a popup window asking for Save or download dialog like this one:
  <img src="https://i.stack.imgur.com/8cVL0.jpg" alt="enter image description here"></p>
  
  <p>I want to get that window when i click on the links.</p>
  
  <p>Here's the code I'm using:</p>
  
  <pre><code>&lt;?php
  listDirectory(".");
  
  function listDirectory($path) 
  {     
  
  $handle = @opendir($path);   
  
   while (false !== ($file = readdir($handle)))
  
   {         
  
   if ($file == '.' || $file == '..') continue;  
   if ( is_dir("$path/$file")) 
   {  
  print ("&lt;a href=\"$path/$file\"&gt;$path/$file&lt;/a&gt;");   
   }  
   else  
   {  
  print ("&lt;a href=\"$path/$file\"&gt;$path/$file&lt;/a&gt;"); 
    }     
    }     
   closedir($handle); 
    }
  ?&gt; 
  </code></pre>
  
  <p>Note: print ("$path/$file"); ~ works only for particular browser only ( not for IE ) and Directory download cannot be done</p>