in reply to Re: Re: CGI counter resets for no obvious reason
in thread CGI counter resets for no obvious reason
(pretty confusing at first glance, eh?) Notice that there is no flock in there or any type of locking. Here are some links you should check out.$cfile="counter.txt"; open(COUNT,$cfile); $count=<COUNT>; $count++; close(COUNT); open(COUNT,">$cfile"); print COUNT $count; close(COUNT); print "content-type: text/html\n\n"; print $count;
|
|---|