Hi ppal6426,
As enricodias4654 says, CHMOD 777 isn't a security issue. If you can use 755 then use that instead, some servers will only allow writing with 777, some block 777. It all depends on how the server is configured.
CHMOD is more important in a shared hosting environment (non...