dear list,
I have a perl script that I would like to run from any browsers. I tried it on firefox and internet explorer, but both gave me, the same error message, "Content-type: text/html

'C:\HRMS\cgi-bin\cetakKuponMakanHarian.pl' script produced no output"

I am using IIS under windows 7 32 bit, I set already the security into allow to everyone to read and execute.

Please tell me what I miss. Thanks.

here is the upper part of the script:

use strict;
use DBI;
use Time::Format;
use MySQL::DateFormat;

my ( $KODE_UNIT, $KODE_BAGIAN, $NIK, $TANGGAL, $JUMLAH, $KD_S_NASI, $JENIS, $USER_ID, $TGL_CREA, $TGL_UPD, $CK1, $SHIFT ) = '';

my $query4 = qq { select * from fo_lain where TANGGAL = curdate(); };
my $sth = $Mdbh->prepare($query4) or die "Couldn't prepare statement: " . $Mdbh->errstr;;
$sth->execute();

print "Content-type: text/html\n\n";
print "<HTML><head>";
print "<meta http-equiv=\"Content-Language\" content=\"en-us\">\n";
print "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1252\">\n";

print "</head><BODY bgcolor='#F0F8FF'>\n";

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to