casep
01-20-2003, 02:25 PM
I'm a newbie just testing some basic I/O on my web server.
#!/usr/bin/perl
open(SU, ">survey.txt") || die "Cannot open survey.txt $!"; print SU "This is working now.";
close (SU);
I keep getting the 500 Internal Server Error and my error log says:
[Mon Jan 20 09:08:40 2003] [error] [client 66.80.146.67] Premature end of script headers: /home/enki/public_html/cgi-bin/process.pl
The research I've done seems to point to a permissions problem - that I should change the CHMOD settings. No matter what settings I use, I keep getting the same error. Any help is much appreciated!!
#!/usr/bin/perl
open(SU, ">survey.txt") || die "Cannot open survey.txt $!"; print SU "This is working now.";
close (SU);
I keep getting the 500 Internal Server Error and my error log says:
[Mon Jan 20 09:08:40 2003] [error] [client 66.80.146.67] Premature end of script headers: /home/enki/public_html/cgi-bin/process.pl
The research I've done seems to point to a permissions problem - that I should change the CHMOD settings. No matter what settings I use, I keep getting the same error. Any help is much appreciated!!