Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
CGI counter resets for no obvious reasonby fraktalisman (Hermit) |
on Jan 30, 2001 at 14:46 UTC ( [id://55222]=perlquestion: print w/replies, xml ) | Need Help?? |
fraktalisman has asked for the wisdom of the Perl Monks concerning the following question:
I use a counter script that is being called by a Flash File (SWF). The script writes the count to a file; and if the parameter 'rubrik' is passed via CGI, it also writes to another file that counts the hits in that 'rubrik' (category) seperately. Every 100 hits, a mail is sent to me. A mail shall also be sent if there was an error. The original script did no file locking, this one does. Still, for some reason the counter is reset to zero from time to time. I get the notification every 100 hits, but I never get a mail stating an error. After reading all docs and faqs related to CGI, I found no explanation. Here is the code:
Back to
Seekers of Perl Wisdom
|
|