Note:
The current user is the user under which PHP runs. It is probably not the same user you use for normal shell or FTP access. The mode can be changed only by user who owns the file on most systems.
This also applies to your attempt to delete that file. The current user (the user under which the php process runs) must have rights to delete the file and attempting to set permissions on it will not work if that file isn’t owned by the current user.
What you can do is log in to that server and give the user under which php runs the rights to modify that file, but this might not be possible if you don’t control that server.
[/INDENT]