|
|
|
|
![]() ![]() |
Jan 25 2006, 02:45 PM
Post
#1
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 175 Joined: 10-September 05 Member No.: 11,692 |
Does anyone know the code that I would add into the bottom of my website to have this information show at the very bottom.
CODE Page was generated in 0.009746 seconds! Thank you for your help. |
|
|
|
Jan 25 2006, 02:56 PM
Post
#2
|
|
|
Desperately seeking "any key" to continue... ![]() Group: Admin Posts: 3,497 Joined: 23-April 05 From: Trap17 storage box Member No.: 6,042 |
Are you referring to the actual time that a page was needed to generate information and shown or the time it took for a database to return a result due to a query?
apollo found this: http://www.trap17.com/forums/page-load-tim...ipt-t32829.html This post has been edited by BuffaloHELP: Jan 25 2006, 03:02 PM |
|
|
|
Jan 25 2006, 03:13 PM
Post
#3
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 175 Joined: 10-September 05 Member No.: 11,692 |
I am talking about for the page to load and I have looked at that code thaet apollo found and in honesty I do not understand where to put it in my HTML or anything. So some more advice would be really good.'
Thanks. |
|
|
|
Jan 25 2006, 03:38 PM
Post
#4
|
|
|
Desperately seeking "any key" to continue... ![]() Group: Admin Posts: 3,497 Joined: 23-April 05 From: Trap17 storage box Member No.: 6,042 |
Place the first code right after <HTML>
Place the second code wherever you want the time to appear or at the bottom. If you're placing it at the bottom, right before </HTML> Save it as file_name.php And your old file_name.html is no longer needed. Upload and test it out. |
|
|
|
Jan 29 2006, 08:25 AM
Post
#5
|
|
|
Hidden Secrets can't be told threw just words. One must feel what the other feels to truely understand... ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1,522 Joined: 8-January 06 From: Sacramento California Member No.: 16,756 |
>_< sorry for not putting that in, i suppose it would have helped people who read it to know where to put it..i reported it to a mod and had em change it sorry bout that..
|
|
|
|
Jan 29 2006, 08:33 AM
Post
#6
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 240 Joined: 9-July 05 Member No.: 9,213 |
Also, shouldn't this be in another forum? It certainly isn't General Talk.
|
|
|
|
Jan 29 2006, 08:39 AM
Post
#7
|
|
|
Hidden Secrets can't be told threw just words. One must feel what the other feels to truely understand... ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1,522 Joined: 8-January 06 From: Sacramento California Member No.: 16,756 |
might have been, but when BH posted a few days ago he didn't say anything about it, so maybe it is fine here >_<
|
|
|
|
Feb 27 2006, 09:13 AM
Post
#8
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 130 Joined: 21-December 05 Member No.: 15,990 |
I use my own "Time generation" php script.
I wrote it more 1 year ago. It consist of 2 parts: 1st part - need put in top of page CODE <? //start point of loading list($msec,$sec)=explode(chr(32),microtime()); $HeadTime=$sec+$msec; // ?> I think that it very nice script! and 2nd part - need put in bottom of page for displaying CODE <? //end point of page loading list($msec,$sec)=explode(chr(32),microtime()); // print generation time with 4 digits after point echo "Page loading at ".round(($sec+$msec)-$HeadTime,4)." sec."; ?> |
|
|
|
Mar 4 2006, 07:21 PM
Post
#9
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 20 Joined: 28-January 06 Member No.: 17,811 |
Here is the code I use:
Add this at the top of the page CODE <?php $stime=explode(' ', microtime()); $stime=$stime[1]+$stime[0]; ?> Then at the bottom of the page: CODE <?php $ftime=explode(' ', microtime()); $time=round($ftime[1]+$ftime[0]-$stime, 4); echo 'Execution Time: '.$time; ?> |
|
|
|