Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

87 users online



page generated in...

page generated in...

Currently viewing this thread: 1 (0 members and 1 guests)


Nonsense

Nonsense

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

tbi

tbi

Status: Offline!

Just copy/paste this code at the very top of your page source code

PHP:


<?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:


<?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

Nonsense

Nonsense

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

tbi

tbi

Status: Offline!

*lol* after 13 days Roll Eyes

___________________

sillerdesign|de

Squid

Squid

Neverside Newbie
Status: Offline!

haha, anyway to decrese the amount of numbers after the loading time?

Jeb

Jeb

Status: Offline!

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.

Abyssyml

Abyssyml

Status: Offline!

Ok and how did the time determine how it was split.. I mean as in like what % was PHP and what % was SQL

cannotbeused2

cannotbeused2

Neverside Newbie
Status: Offline!

it didnt?Shocked

___________________

evolvedbb

midsummerstorm

midsummerstorm

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 Smile

___________________

-~-~-~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
...

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0079 seconds.