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.
// put at top of script $start = mktime(); //put at end of script $end = mktime(); $time = $end-$start; echo "<br>time: $time secs";
Hope this helps 😉
I get this error :
Parse error: parse error, unexpected T_VARIABLE in c:\website\load.php on line 5
line 5 is : $time=$end-$start;
Boo 😃
Use microtime() instead of mktime (that'd only be useful if it took seconds to compile your pages!) See http://www.php.net/manual/en/function.microtime.php for how to use it.
no way ! lep !
So are you a coder at heart, or do you get these plebs to right s/p for you ?
lol - thanks for the help, ill try it out.