title: php file download script doesn't work with iOS7 device?
body: <p>I have the follow php script to trigger auto downlad.</p>
  
  <pre><code>&lt;?php
      ob_start();
  
      $file = 'sample.jpg';
  
      if (file_exists($file)) {
          header('Content-Description: File Transfer');
          header('Content-Type:  application/octet-stream');
          header('Content-Disposition: attachment; filename='.basename($file));
          header('Content-Transfer-Encoding: binary');
          header('Expires: 0');
          header('Cache-Control: must-revalidate');
          header('Pragma: public');
          header('Content-Length: ' . filesize($file));
          ob_clean();
          flush();
          readfile($file);
          exit;
      }
  ?&gt;
  </code></pre>
  
  <p><a href="http://toasterlab.net/liese/" rel="nofollow">http://toasterlab.net/liese/</a></p>
  
  <p>it works properly on desktop and my android phone, but not on my iPad and iPhone. </p>
  
  <p>what should I do to get it works on iPad &amp; iphone?</p>
  
  <p>Thanks.</p>