PHP Speed Test for user connection speed without echo in current page

后端 未结 7 1135
甜味超标
甜味超标 2021-01-13 00:25

I am looking for a possibility to check the user connection speed. It is supposed to be saved as a cookie and javascript files as well as css files will be adapted if the sp

7条回答
  •  广开言路
    2021-01-13 00:54

    The only thing I can think of would be to subscribe to a service which offers an IP to net speed lookup. These services work by building a database of IP addresses and cataloging their registered intended use. They're not always accurate, but they do provide a starting point. Look up the user's IP address against one of these and see what it returns.

    Ip2Location.com provides such a database, beginning with their DB13 product.

    Of course, if your goal is a mobile version of the site, user agent sniffing is a better solution.

提交回复
热议问题