Hi Rapidex
You need to chmod the file to 777. There are other options of course, but 777 will definitely work.
Are you FTPing to a remote hoster? I suspect you are. Are you working on Win32 at home? I suspect you are.
Most FTP clients allow you to right click on files which you have loaded up to a remote server and change the permissions. This certainly works with WS-FTP from Ipswich, one of the standard freeware FTP clients.
Issue: Win32 has no obvious file-permissions system. Unix/Linux issues file permissions for every single file. As a result, most Win32 users are not even aware of the fact that every file on a Linux box will only do what it has been allowed to do. Load your files up to your hoster and then right-click on those for which permissions are relevant. This includes all flat files which are being opened and closed by your scripts. It doesn't include files with the endings .php and .htm(l). It does, however, include files with the endings .pl or .cgi, i. e. Perl files. Change the permissions on affected files to read/write/execute for user, group and owner. Make sure there are no security-relevant files in there. You need different permissions for those.
HTH
Norm