A php script won't come close to simulating real visitors thus the reason there aren't many (if any). To register traffic on most analytic programs you must show images. The analytic javascript reads information from the visiting computer and so on. How are you going to do this with a php script?
The solution to run visitor bots 24/7 is Windows VPSs or servers. Not Linux boxes and php scripts.