1 diavol Jan 03, 2006 19:19
3 personman Jan 03, 2006 22:09
3. There's nothing built in that does this (as far as I know), but I found this on Hotscripts.com:
<?php
// Insert at the very top of your page
$time = microtime();
$time = explode(" ", $time);
$time = $time[1] + $time[0];
$start = $time;
?>
<?php
// Place at the very bottom of your page
$time = microtime();
$time = explode(" ", $time);
$time = $time[1] + $time[0];
$finish = $time;
$totaltime = ($finish - $start);
printf ("Page took %f seconds to load.", $totaltime);
// The above line can be changed but remember to keep %f
?>
I haven't tested it, so let me know if it works.
4 diavol Jan 03, 2006 23:26
personman,
Thanks for that script it worked great! I'm not sure how accurate it is, but it seemed pretty reasonable to me. Quick question on that, it's spitting out time to the millionths of a second, any way to format it to 3 places?
Also, about question #1, I already have the blog posting to my index.php, what I was wondering is that in the admin page where you go to write the blog, it defaults to Blog A, and I have to tab over to my custom blog everytime I have to write a blog. Any way to change the order of tabs in the admin screen? Thanks for your help!
1. Set the access parameters for the new blog to 'default on index'. It's in the blogs tab. That should make index.php go straight to the new blog. You may also have to change the access parameters for the current default blog.