I got to ask you, why do you think people are interested in seeing an up-to-date count of, uhm, yeah, what actually? Certainly not the count of visitors, as such counters don't count hits served from proxies. Or let me phrase that another way. What goes through your mind if you visit a web page, and it says you are visitor 123456 since some point in the past? Do you get thrilled? Do you keep a diary where you write down your score? Do you even read it?
Anyway, your program is riddles with problems. It might work well if you get just a handful of requests, distributed over the day. But you a have a problem each and every time you have two hits almost simultaneously.
If you really must include a counter, does it have to be up-to-date to the second? Why don't you just generate the entire page, including a new count, every night? You can get the count from your log files.
Abigail
--
You are visitor 1,578,920,023 since
the third month of the 15th year of the reign of Ramses II.
In reply to Re: Need a way to print script output to web page?
by Abigail-II
in thread Need a way to print script output to web page?
by Elijah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |