title: How to control the file permissions when the netbeans php plugin uploads a file with FTP
body: <p>Whenever netbeans preforms an ftp upload the files are uploaded with the permissions set to 640. This causes PHP to throw the following error:</p>
  
  <pre><code>Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
  
  Fatal error: Unknown: Failed opening required '/Library/WebServer/Documents/notes/index.php' (include_path='.:/usr/local/php5/lib/php') in Unknown on line 0
  </code></pre>
  
  <p>While I can clean it up with a quick <code>chmod o+r ./*</code> in the command prompt it causes netbeans to resynchronize the entire project next time I hit run which in turn sets the permissions back to 640.</p>
  
  <p>I need a way to make netbeans upload the files with permissions set to 644.</p>