in reply to CGI, write to file

If you make the file writeable by all users, before running the CGI script, you can write to that file via CGI script.