Using 777 on an server with an ftp is not safe, so unless it's a very isolated network I'd suggest using 700 and changing the user (chown) or 770 and changing the group (chgrp) to manage the permisions if you are developing with some other users.
So if the ftp user you are using is for example myftpuser
The first digit is "owner" permissions, the second is "group" permissions - and the owner and group are viewable with ls -l, and the third is "others", which literally means those that aren't either the owner or in the group.
So 007 means that neither the owner or group members can read, write, or execute the file, while everyone else can do all three.
Best Answer
The world, the file's group, and the file's owner can read, write, and execute the file. The
777
specifies that using octal notation.For further reading - http://en.wikipedia.org/wiki/File_system_permissions#Octal_notation