Recently, there is a demand for business, the need to achieve a broadband speed measurement function, online search, found that the information is relatively small.
There is a phper idea is through the netstat command to access the information of Windows itself, here to ask everyone, what other ideas?
I know some of the underlying languages, something like C + + can do.
However, I hope you will try to consider the language php~
Reply content:
Recently, there is a demand for business, the need to achieve a broadband speed measurement function, online search, found that the information is relatively small.
There is a phper idea is through the netstat command to access the information of Windows itself, here to ask everyone, what other ideas?
I know some of the underlying languages, something like C + + can do.
However, I hope you will try to consider the language php~
Simple point of Use JS
Record start time
Download a file of 1M size
Record End time
Speed = File size/download time
PHP uses a function like Popen to execute commands. I always play like this on my work.