in reply to Re^2: CGI parse and edit file
in thread CGI parse and edit file

You don't have a selinux enabled operating system, by chance, or one with some other additional security services?

Update: much easier explanation: the files are stored as belonging to your user, not the web server's user id.