At 08:53 PM 11/1/03 +0700, Stephen Eko Budiharto wrote:
hi list,
I would like to ask about this error message.
when I ran the script under DOS command, it ran well, but when I ran it using browser, I got this error message. Can anyone help me to explain what the error means?

CGI output doesn't go to a 'datafile', you should be printing to STDOUT after you
send the required headers.


Scott



'C:\webmis\cgi-bin\helloWorld_di_write_ke_file.pl' script produced no output

perl script:

#!/usr/local/bin/perl

use CGI;

$query = new CGI;

$datafile = "../test.txt";

open (DATAFILE,">$datafile") || die "Can't open $datafile: $!\n";

print DATAFILE "Hello World";

close DATAFILE;

print $query->header;

print "saved\n"








--


Utilities for POPFile, the OpenSource Mail Classifier
    http://www.geocities.com/Helphand1/popfile.htm

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to