in reply to writing to a file in a cgi script

The previous posters have covered most of the bases. When you go to try and debug this, keep in mind these specific things to watch/look for:

--rjray