[PHP] Seite geladen in..

hm.... also irgendwie will das nicht in der funktions.php habe ich nun drin:

PHP:
/* Loadtime */
function getmicrotime() 
{ 
    list($usec, $sec) = explode(" ",microtime()); 
    return ((float)$usec + (float)$sec); 
} 

function calctime() 
{ 
    global $startzeit; 
    $stoppzeit = getmicrotime(); 

    $loadtime = round($stoppzeit-$startzeit, 3);

} 

$startzeit = getmicrotime(); 
$stoppzeit = 0; 

register_shutdown_function("calctime"); 
/* Time End */


Diese Datei ist nun in der index.php mit require("funktions.php"); drin

aber die variabel ist immer noch leer...
 
Zurück