Ask the administator of the server to change the permissions.
The webserver seems to run as a different user as you, when you uploaded the files (via ftp?)
Which exact permissions are needed is depending on the settings of the apache and the php interpreter. When using e.g FCGI-PHP oder SuPHP a 777 is forbidden. When PHP is running as a module inside the webserver 777 can be a must.