title: redirect to ftp server while hiding username/password?
body: <p>I am currently using this to redirect to an ftp server </p>
  
  <pre><code>header('Location: ' . $result['url']);
  </code></pre>
  
  <p>the <code>$result['url']</code> contains ftp urls like this</p>
  
  <pre><code>ftp:username@password:server
  </code></pre>
  
  <p>the problem is that anyone can open the console and see the security creds,</p>
  
  <p>I know that you can hide an download url by using readfile like so</p>
  
  <pre><code>header("Content-Description: File Transfer");
  header("Content-Length: " .(string)(filesize($variable)) );
  header('Content-Disposition: attachment; filename="'.basename($variable).'"');
  header("Content-Transfer-Encoding: binary\n");
  readfile($variable);  
  </code></pre>
  
  <p>is there something similar for ftp url redirects?</p>