On Fri, May 04, 2001 at 12:04:37PM -0400, Timothy Kimball wrote:
: 
: : I am trying to append to an existing database and my cgi keeps coming up
: : with an Internal Server Error. I've looked this over many times with
: : different books as references, and I can't see what is wrong with it. My
: : form method is POST. Here is my code:
: 
: My money's on you not being able to open timesheet.db from a CGI script
: (permissions, probably).  I would not expect this error to be in the
: server's error_log, though, because of the comma right after the die.
: 
: I would change the open() line to
: 
: unless(open(DAT, ">>timesheet.db")){
:       die "Cannot Open timesheet.db: $!" };
: 
: run it again and taiil the error_log. If this is what's killing
: the script, then $! will tell you why (usually).

Of course, that was 'tail' on *nix ;-)

open a new terminal and try:

$ tail -f /path/to/log/errors

this will continually fill with errors as your code produces them,
it's very handy for debugging.

  Casey West

-- 
Shooting yourself in the foot with VMS
\FOOT\ ambiguous: supply more toes.

Reply via email to