in reply to Cannot open file for appending
The web server is probably running as a different user than you expect, so the CGI probably lacks user or group permissions to write.
Besides that, your argument parsing has several flaws:
The two error messages you're seeing are really from the same issue. The die happens before anything is printed to the browser, so the web server sends back content saying "Sorry, the script died before it could send anything."
|
|---|