title: How to dispaly progress bar while downloading a file from server using php
body: <pre><code>&lt;?php
  $zip_file="test.zip";
  $source="abc.com/$zip_file";
  $data=file_get_contents("$source");
  sleep(1);
  //display the progress
  $dest=file_put_contents($zip_file,$data);
  ?&gt;
  
  &lt;div id='status'&gt;progress ...&lt;/div&gt;
  </code></pre>
  
  <p>I want to show the progress bar for every 1 second of downloaded % and remaining % to download.</p>