jay-dogg2006 Posted July 17, 2007 Share Posted July 17, 2007 The first step is to place the following code at the very top of your php file to start the timer, so we can display the load time. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then at the very bottom of your page you need to add this code to stop the timer and then display the total time. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. The script currently outputs Page took 0.15235 seconds to load. But you can change the text to anything you like by changing the text in the quotes, the time is output where the %f is placed. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Matty Posted July 17, 2007 Share Posted July 17, 2007 Re: [MC codes V1 & V2] Page Loading Time script above can be found here... http://www.totallyphp.co.uk/code/page_load_time.htm I think this is a better version though... http://www.developertutorials.com/tutorials/php/displaying-load-time-php-050620/page1.html Quote Link to comment Share on other sites More sharing options...
iseeyou94056 Posted July 17, 2007 Share Posted July 17, 2007 Re: [MC codes V1 & V2] Page Loading Time works great thanks Quote Link to comment Share on other sites More sharing options...
Z?v?? Posted July 20, 2007 Share Posted July 20, 2007 Re: [MC codes V1 & V2] Page Loading Time Wow. Using the one from the developertutorials.com site isn't accurate. I must've installed it wrong or something. it says This page loaded in 1184970209.6014 seconds. Quote Link to comment Share on other sites More sharing options...
Decepti0n Posted July 20, 2007 Share Posted July 20, 2007 Re: [MC codes V1 & V2] Page Loading Time You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. (haven't tested in case those dont work) Quote Link to comment Share on other sites More sharing options...
Z?v?? Posted July 20, 2007 Share Posted July 20, 2007 Re: [MC codes V1 & V2] Page Loading Time Yep, works perfectly. Quote Link to comment Share on other sites More sharing options...
-Matt- Posted July 21, 2007 Share Posted July 21, 2007 Re: [MC codes V1 & V2] Page Loading Time nice +1 http://www.AWSurveys.com/HomeMain.cfm?RefID=matt2k6 Quote Link to comment Share on other sites More sharing options...
Matty Posted August 14, 2007 Share Posted August 14, 2007 Re: [MC codes V1 & V2] Page Loading Time You have to make sure this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. is at the bottom of your header, usually in the last table? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.