NetBeans FTP File Permissions Fix
I’ve been trying out NetBean’s “PHP Application from Remote Server” feature this weekend. The idea is that when you save a file, it uploads that file to a remote server where it can be run.
The problem I ran into is that when NetBeans uploads that file and overwrites the old version, the permissions on the file change. I did some searching and it sounds like NetBeans doesn’t set permissions on the file, which means it just takes the server default. This doesn’t make much sense (should keep permissions of previous file) and for me it meant that the permissions were set so low that I couldn’t run the PHP scripts I was uploading.