
April 7th, 2003
07:18 PM
i do web design but mostly just make graphics redo pictures of me and my freinds and i write alot of nonsense, sing nonsense, draw nonsense and sometimes write some creative stuff like lyrics but also i woudl rather skate than any of that stuff
Status: Offline!
page generated in...
Page generated in 0.26432097 seconds (60.72% PHP - 39.28% MySQL) with 10 queries.
that is what i see all the way at the bottom of tutorialforums...i am wondering if theres a way to have this on my site...i dont have mysql databases so it would have to be flat file, is that even possible? and if so can anyone help me with where to start?
___________________
"do not make one thing the center of your world because if that one thing goes to ****, so does your world." - by me

April 7th, 2003
07:48 PM
Just copy/paste this code at the very top of your page source code
<?php
// place at the very top of your page
$time=explode(' ', microtime());
$the_time_taken=$time[1]+$time[0];
?>
Copy paste this code at the very end of your source code and that's it !
<?php
// place at the bottom
$time=explode(' ',microtime());
$time=$time[1]+$time[0];
$a=($time-$the_time_taken);
echo "this page was rendered in a mere <b>$a</b> seconds<br>";
?>
___________________
sillerdesign|de

April 20th, 2003
04:56 PM
i do web design but mostly just make graphics redo pictures of me and my freinds and i write alot of nonsense, sing nonsense, draw nonsense and sometimes write some creative stuff like lyrics but also i woudl rather skate than any of that stuff
Status: Offline!
thank you very much
___________________
"do not make one thing the center of your world because if that one thing goes to ****, so does your world." - by me

April 20th, 2003
07:40 PM
Neverside Newbie
Status: Offline!
haha, anyway to decrese the amount of numbers after the loading time?

April 21st, 2003
04:53 AM
round()
___________________
Adam Goossens -- PHP is my mother tounge.
Linux: ( kernel.org | winehq ) -- f33l the p0w3r.
Nobody replying to your questions? Getting flamed? Getting told to RTFM? Ask your questions the right way.

April 29th, 2003
04:43 AM
Ok and how did the time determine how it was split.. I mean as in like what % was PHP and what % was SQL

April 29th, 2003
07:53 PM
28, Male & single, what else do you need to know?
Status: Offline!
If you use an object for DB connections, you can monitorize the time every query is taking, and save it. Then, at the end of the script, you just have to take the difference between the global time (time to exec all the script), and the time the DB object took to do its stuff, and you'll get the PHP execution time. And that's it 
___________________
-~-~-~oO··Oo~-~-~-~-
I wish I was a messenger and all the news was good
I wish I was the full moon shining off your camaros hood
...