I have a PERL script that runs fine from the command-line. But when I run it over the web, it stops when I try to do the file I/O. I don't see any error messages, it just stops.
This is the script:
The web server is IIS 5. Any suggestions?
Thanks.
This is the script:
Code:
use strict;
print "HTTP/1.0 200 OK\n";
print "Content-Type: text/html\n\n";
print "<HTML>\n";
print "<BODY>\n";
print "<H4>Hello World</H4>\n";
open (OUTFILE, ">> C:/Dev/perl/cgi-bin/file.out") or die "Unable to open file.\n";
print OUTFILE "testing...\n";
close (OUTFILE);
print "</BODY>\n";
print "</HTML>\n";
Thanks.