I am looking for a php script to detect the network speed/bandwidth.
I will need it to know that if there is enough network speed/bandwidth to stream a video file or not.
I Google alot but cannot find it.
PHP can record the starting time and then start outputting random data for say 10 seconds. The amount of traffic transferred in that 10 seconds can be used to detect link speed. It works because TCP has to send acknowledgements for each of its packets before it can continue (with a small error window called the TCP window).