title: Downloading file from another website in PHP creates the file but doesn't download any bytes
body: <p>I'm trying to download <a href="https://dl.dropboxusercontent.com/s/pdg8bnpmbgvcsmd/QR-Kodite.rar" rel="nofollow noreferrer">this file</a> from <code>DropBox</code>, i tried the same code with a file on the same website that running the <code>PHP</code> script and it did work but now when i add a full <code>ULR</code>, it doesn't.</p>
  
  <p>The problem is that the <code>QR-Kodite.rar</code> file is created in my <code>Windows</code> downloads folder but its size is <code>0</code> and <code>Chrome</code> says that the download has finished.</p>
  
  <p><strong>This is my code :</strong></p>
  
  <pre><code>if(isset($_GET['App'])){
      if(basename($_GET['App']) == $_GET['App']){
          $path = 'https://dl.dropboxusercontent.com/s/pdg8bnpmbgvcsmd/QR-Kodite.rar';
  
          $size = filesize($path);
          header('Content-Type: application/octet-stream');
          header('Content-Length: ' . $size);
          header('Content-Disposition: attachment; filename=' . $path);
          header('Content-Transfer-Encoding: binary');
          header('Expires: 0');
          header('Cache-Control: must-revalidate');
          header('Pragma: public');
          ob_clean(); 
  
          $file = @ fopen($path, 'rb');
          if($file){
              fpassthru($file);
              $_SESSION["ITA"] = "No";
              exit();
          }
      }
  }
  </code></pre>