Hi there.
Thanks for your help. The script that you have posted helps me a lot, but if it's not too much trouble I need it to do one more thing. I need it for each $site after it finishes to reset the counters and I want also to have a line that adds all the counters for this particular $site1. I hope that my question makes sense.
Thanks in advance.