fonction indéfinie microtimestamp
Bonjour à tous,
J'ai un petit souci que je n'arrive pas à résoudre...
J'ai une fonction :
Code:
1 2 3 4 5 6 7 8 9 10
|
function microtimestamp()
{
list($usec, $sec) = explode(" ",microtime(true));
return ((float)$usec + (float)$sec);
//list($msec, $sec) = explode( ' ', microtime());
//return ((float) $sec + (float) $msec);
}
$start = microtimestamp(); |
Que j'appelle dans un fichier entete.php.
Et un fichier enpied.php qui contient :
Code:
1 2 3 4 5
|
<?
$end = microtimestamp();
$temps_s = round($end - $start,3);
?> |
Et j'obtiens l'erreure suivante :
Code:
Fatal error: Call to undefined function: microtimestamp() in /mnt/104/sdb/9/9/SITE/graph/enpied.php on line 2
Les deux fichiers sont bien entendus appelés....
FAI = Free
Je ne vois vraiment pas le problème la...
Merci de votre aide !!!