Re: Problems opening files from CGI.pm program in Windows

2006-01-24 Thread Jim Riddles
Mary, This appears to be a simple permissions error. When running a cgi script you are running with the web server's credentials, so your log file is not writeable by that user. When run locally, you are using the credentials that you are logged on as, so the script has access. This is no

Re: Problems opening files from CGI.pm program in Windows

2006-01-23 Thread Dr.Ruud
Mary Anderson: > open(LOG,">>.\guestbook.err")|| Simply try '>>./guestbook.err'. BTW, whitepace is cheap nowadays: my $logfile = './guestbook.err'; open( LOG, '>>', $logfile ) or die "Couldn't open log ($logfile) $!"; -- Grtz, Ruud -- To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: Problems opening files from CGI.pm program in Windows

2006-01-22 Thread Bob Showalter
Mary Anderson wrote: Hi All, I am running Perl 5.8.7 (ActivePerl) on a Windows XP platform. I have been unable to open files from a CGI.pm script. Here is the offending code: use CGI qw/:standard :html3 :netscape/; use POSIX 'strftime'; use CGI::Carp('carpout'); open(LOG,">>.\guestbook.er

Re: Problems opening files from CGI.pm program in Windows

2006-01-22 Thread Paul Archer
3:43pm, Mary Anderson wrote: Hi All, I am running Perl 5.8.7 (ActivePerl) on a Windows XP platform. I have been unable to open files from a CGI.pm script. Here is the offending code: use CGI qw/:standard :html3 :netscape/; use POSIX 'strftime'; use CGI::Carp('carpout'); open(LOG,">>.\gue

Problems opening files from CGI.pm program in Windows

2006-01-22 Thread Mary Anderson
Hi All, I am running Perl 5.8.7 (ActivePerl) on a Windows XP platform. I have been unable to open files from a CGI.pm script. Here is the offending code: use CGI qw/:standard :html3 :netscape/; use POSIX 'strftime'; use CGI::Carp('carpout'); open(LOG,">>.\guestbook.err")|| die "cou