如何在PHP中检测互联网速度? [英] How to detect internet speed in PHP?

查看:78
本文介绍了如何在PHP中检测互联网速度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何创建一个PHP页面来检测用户的互联网速度并将其显示在页面上?像

How can I create a PHP page that will detect the user's internet speed and show it on the page? Something like,

您的互联网速度为??? Kbps

Your internet speed is ??? Kbps

推荐答案

这可能不完全是您要查找的内容(阅读粗体部分),但我怀疑是否还有其他可能.

This might not be completely what you're looking for (read the bold part), but I doubt if anything else is possible.

此脚本向您的客户端发送512 KB的HTML注释.解析HTML可能会增加总传输时间,因此请勿以此为原始下载速度.

This script sends 512 KB of HTML comments to your client. Parsing that HTML may add to the total transfer time, so don't take this as your raw download speed.

引用自: PHP速度测试

来源在这里

希望有帮助.

这篇关于如何在PHP中检测互联网速度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆