Hi!!!!
I'm trying to put a simple text counter with this simple script:
**ScRiPt****ScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt
#!/usr/bin/perl
print "Content-type: text/plain", "\n\n";
$count_file = "/usr/apache/html/ingersoll/counter/data/count.txt";
if (open (FILE, "<" . $count_file)) {
$no_accesses = <FILE>;
close (FILE);
if (open (FILE, ">" . $count_file)) {
$no_accesses++;
print FILE $no_accesses;
close (FILE);
print $no_accesses;
} else {
print "[Can't write to the data file! Counter not incremented !
]", "\n"
;
}
} else {
print "[Sorry! Can't read from the counter data file ]", "\n";
}
exit (0);
**ScRiPt****ScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt
And I have this on my page:
**PaGe****PaGe**PaGe**PaGe**PaGe**PaGe**PaGe**PaGe**PaGe**PaGe**PaGe**PaGe**PaGe
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Esta pagina ha sido accesada ocasiones.
**PaGe****PaGe**PaGe**PaGe**PaGe**PaGe**PaGe**PaGe**PaGe**PaGe**PaGe**PaGe**PaGe
but still can't display anything!!!!!
I've already set up the Server Side Includes in my Apache, but , if you
chek the page.... it still doesn't display anything!!!!
Dones anyone know why this doesn't display my counter???
Thanks in advance for your valuable help...
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]