Folders with 777 permissions are inexcusably dangerous.
Find a different web host
Actually, find a different host if your host does NOT require 777 for
it to be writeable. In truth, if PHP scripts can write to a folder that
is 755 (suexec, suPHP), that's effectively the same as having ALL folders
777. So what you want, for security, is a host who requires 777 in order
to make the folder writeable.
Think about it this way - almost all folders are 755 by default. If scripts
can write to 755 folders, that means any script can write to any folder!
If scripts can write only to 777 folders, that means that can only write
to the folders they are supposed to. If you're going to allow writes to
all directories, they may as well ALL be 777, so that's what's inexcusably
dangerous.
Just the opinion of one licensed security professional with fifteen years
of experience.