I spent my Sunday afternoon playing around CMS made simple and I do find it pretty easy in comparison with my previous CMS (Typo3...) but I am stuck on something pretty simple.
I want to display the page loading time at its bottom, which is calculated through a basic PHP script.
I read in the forum that one should use a custom usertag to insert a php script but I must be missing something...
Here is my template:
Usertags:(...)
{loading_time_init}
(....)
{loading_time_display}
The date gets displayed properly but the loading time is completely wrong.{loading_time_init}
$starttime = microtime();
$startarray = explode(" ", $starttime);
$starttime = $startarray[1] + $startarray[0];
{loading_time_display}
putenv('TZ=GMT');
echo date("Y-m-d h:i:sa \G\M\T \:\: ", time());
$endtime = microtime();
$endarray = explode(" ", $endtime);
$endtime = $endarray[1] + $endarray[0];
$totaltime = $endtime - $starttime;
$totaltime = round($totaltime,5);
echo "Page loaded in $totaltime seconds.";
From what I understand, it looks like the starttime variable defined by the first usertag is not taken into consideration by the second usertag.2008-05-18 05:11:45pm GMT :: Page loaded in 1211130705.1812 seconds.
Could someone let me know what I am doing wrong? Because I really cannot understand

Thanks in advance.
Ludo