Noté un problema raro con este dominio hace unos dias, que resultó ser un problema de que las bases de datos estan en Miami y el host en otro estado. Ya se supone que lo estan verificando, pero no se ve bien.
Hice un codigo simple para validar el tiempo de carga real de manera externa, necesita Curl.
En modo interno
======================================
$url=’http://www.Example.com’; loadtime($url);
function loadtime($url){
echo »
Testing time needed to serve the Url: $url»;
$starttime = microtime();
$startarray = explode(» «, $starttime);
$starttime = $startarray[1] + $startarray[0];
file_get_contents($url);
$endtime = microtime();
$endarray = explode(» «, $endtime);
$endtime = $endarray[1] + $endarray[0];
$totaltime = ($endtime – $starttime);
echo » $totaltime»;
} // loadtime
======================================
en modo externo ya con curl
function loadtime_curl($url) {
echo «Testing time needed to serve the URL: $url\n»;
$start = microtime(true);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // No mostrar contenido
curl_exec($ch);
curl_close($ch);
$end = microtime(true);
$total = $end – $start;
echo «Total load time: » . number_format($total, 3) . » seconds\n»;
}
$url = ‘http://www.example.com’;
loadtime_curl($url);