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
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
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
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
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