Sounds like the umask is the issue. Since most sites do not allow anyone except the original poster to edit files the default umask is 022 which prevents files being writeable by anyone other than the owner, and since executeable files are a no-no on any web site then 777 is not the correct permissions. At most they should be 766, and even that is risky since it allow ANYONE to edit the file.
What you should do is have a group that all authorized users are part of and the directory owned by that group. Then the files could be 664 at most and allow the group to edit the files but everyone else could only read them.
I seriously doubt that the files are 711 since that means everyone could execute them even if they could not read them. 744 maybe.