title: PHP ftp_get failed to open stream when trying to download file
body: <p>I'm trying to make the browser download a file from an FTP server, but whatever I try, I'm getting this error:</p>
  
  <pre><code>Warning: ftp_get(taak4.docx) [function.ftp-get]: failed to open stream: Permission denied in /home/jamesmr117/domains/notepark.be/public_html/classes/taak.php on line 231
  
  Warning: ftp_get() [function.ftp-get]: Error opening taak4.docx in /home/jamesmr117/domains/notepark.be/public_html/classes/taak.php on line 231
  </code></pre>
  
  <p>I am however 100% sure my FTP server is working fine, as uploading files works correctly. I also set every folder to chmod 777. Does anyone know what the problem might be?</p>
  
  <p>My php code:</p>
  
  <pre><code>$local_file="taak4.dockx";
  $server_file="taak4.dockx";
  ftp_get($FTPClient-&gt;connectionId, $local_file, $server_file, FTP_BINARY);
  </code></pre>
  
  <p>Thanks in advance !</p>