AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 3.136.18.192


Current Path : /var/www/lhjmq-records.qc.ca/public_html/speedtest/
Upload File :
Current File : /var/www/lhjmq-records.qc.ca/public_html/speedtest/index.php

<?php 
$version = "1.0";

$images_count = 100;

$remote_ip_address = $_SERVER['REMOTE_ADDR'];
?>
<html>
<title>Speed Test <?echo $version; ?></title>

<script language="javascript">

var sRemoteIP = '<?php echo $remote_ip_address; ?>'

var dtStartTime = new Date()

function loaded()
{
	var dtEndTime = new Date();

	var iDelay = (dtEndTime-dtStartTime);

	document.forms[0].results.value = "Loaded in " + iDelay + " ms (" + Math.round(iDelay / 1000) + " s) from " + sRemoteIP
}

</script>

<head>
</head>

<body onload="loaded()">

<?php 

echo("Testing loading time for $images_count images from $remote_ip_address...<br><br>");

echo("<form><input id='results' style='width: 400px; border=0; color=#FF0000' readonly value='Loading...'></form>");

list($usec, $sec) = explode(" ",microtime()); 
$time_ms = ((float)$usec + (float)$sec);
//echo "Microtime in ms: " . $time_ms;

for ($i=0; $i<$images_count; $i++)
{
	$randname = md5($time_ms . rand(0, 2000) .rand(0, 2000) . $i);

	echo("Image " . ($i+1) . "<br><img src='getimage.php?$randname'><br><br>");
}

?> 

</body>
</html>