Posted on: 2003/10/7 1:20
Re: This page loaded in x seconds
Thanks heaps for you help Olorin
I tried entering the code you posted into the theme.html file of the theme I am using (phpkaox), but nothing is printed to the screen (I placed it at the very bottom just before the </body> tag) . I also tried putting the code into the footer (as this is where I was wanting it anyway), and all it seems to do was print the entire code to screen. I tried making an adaption to suit my needs;
This page loaded in <? php global $ftime; echo $ftime; ?> seconds
This prints correctly at in the footer, except the actual load time is absent as when I replace $ftime with text such as hello, the text is displayed, so I assume I'm missing something to get the $ftime value to print.
I also made the other code changes you specified. One thing I was wondering is what kicks off the time log? Would I have to include something like
in the header.php to start the time logging process?