FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


page loading time





puccavn
IN the header of page, put this :




Code:
<?php
//Put this part on the top of all of your page
//set start time of loading this site
$m_time = explode(" ",microtime());
$m_time = $m_time[0] + $m_time[1];
$starttime = $m_time;
?>







at the footer put this :




Code:
<?php
//put this at the bottom of all in your sorcepage
//end time of load this page
$round = 3;
// The number of decimal places to round the micro time to.
$m_time = explode(" ",microtime());
$m_time = $m_time[0] + $m_time[1];
$endtime = $m_time;
$totaltime = ($endtime - $starttime);
echo " Page Loading Time: ". round($totaltime,$round) ." seconds";   
?>
Related topics
Rate us at ClickHereFree!
*OFFICIAL* Which Browser do you use?
Speed up Firefox
Make Firefox Faster
Which Firefox Extentions?
Top 10 web design mistakes!..
Speed Up Firefox Browser Upto 10 times!!!
free content
OurPortfolio Graphics Design Studio
My Own Site (Finally Some Real Progress)
CSS styling iframe page
Page Loading
Preloading A Page
page loading error
Reply to topic    Frihost Forum Index -> Miscellaneous -> Tutorials

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.