hi
Could you possibly send me / tell me code that would make php get the generation time of the page and print that time ? an example of what I would like to do is on the bottom of most pages at www.snarkpit.com
any help much appreciated.
Thanks
use the time() function
example:
<? $start = time(); //you page goes here ... ... echo "Took " . (time()-$start) . " to load the page. "; ?>
Fatal error: Call to undefined function: time() in c:\website\load.php on line 2
is the error I got. I used the following code :
<? $start_=_time(); //you page goes here echo_(time()-$start); ?>
the forums have formated the code with a few underscores - they're not in the code that I used..
try this then
<? $start =time(); //you page goes here $end = time(); echo $end-$start; ?>