PHP Speed Test for user connection speed without echo in current page
问题 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 speed is slow. The possibility for testing speed i have at the moment ist the following $kb = 512; flush(); // echo "<!-"; $time = explode(" ",microtime()); for($x=0;$x<$kb;$x++){ echo str_pad('', 512, '.'); flush(); } $time_end = explode(" ",microtime()); echo "->"; $start = $time[0] + $time[1]; $finish = $time_end[0] +