This article contains information about setting your permissions to 777.
No, setting permissions to 777 allows other users on the server, as well as anyone who may find a security hole in their scripts, to write to that file. It is a huge security risk to use 777 permissions.