Varshini
asked on
CGI Not opening log file
I have the following CGI file. But it is not oprning the log files and it does not write in the log file .. why ?
print "Content-type: text/html\n\n";
print "<html><body><br></body></ html>\n";
print "Starting";
print "123";
open(LOG,">>call.log");
print LOG "------------------------- ---------- ---------- ---------- ---------- ------\n";
print LOG "\n";
close(LOG);
print "Content-type: text/html\n\n";
print "<html><body><br></body></
print "Starting";
print "123";
open(LOG,">>call.log");
print LOG "-------------------------
print LOG "\n";
close(LOG);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i got the following error when i use
use CGI::Carp qw(fatalsToBrowser);
open(LOG,">>call.log") or die "Can't open call.log because $!";
Can't open call.log because Permission denied at
use CGI::Carp qw(fatalsToBrowser);
open(LOG,">>call.log") or die "Can't open call.log because $!";
Can't open call.log because Permission denied at
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
h
ASKER
I am using the cgi file in asp.net application ...
%1 is not a valid Win32 application.