So much for the symptoms. My question is this. Could these faults be caused by bugs in my scripts? My feeling is the answer is "no", but before I through a major wobbly with my host, I thought I would ask for expert opinions here first.
NOTE: I wrote both counter and form-mail scripts myself.
Kaled.
How is the counter embedded in the HTML? Does the page generator wait until the counter has incremented its count in the DB? If the content gets cached, this could lead to 0 bytes sent to the browser until the counter has finished.
IMO it *could* be some misbehaving CGIs that result in a kind of DOS attack.
1) Using standard Perl only (not mod_perl).
2) Using smtp module (rather than SendMail).
3) Using javascript to include counters in html (I've been thinking of changing this).
4) All counters disable caching.
5) Checked log files - one has been zeroed recently : very interesting!
Kaled.
PS How to I check the length of a file. My counters are self-repairing except if a zero-length file exists - DRAT!
Look up stat, it's a 12 item array with lots of info about a file, including lastmod and other goodies, it's good to get in the habit of using it. If all you want is size
$f_size = -s "$your_file";
if (! ($f_size > 0)) { print "It's still empty!"; }