| Thread Tools |
11th January 2003, 17:00 | #1 |
Member Join Date: May 2002
Posts: 1,202
| parse time hellow Hoe noemt de functie in PHP die de parsetime van een paginateruggeeft? (zoals op de prijswatch, staat er ook "parsetime:...secs") Tnx |
11th January 2003, 19:15 | #2 |
Madshrimp Join Date: May 2002 Location: 7090/Belgium
Posts: 79,021
| at the end of the page <? $mtime = microtime(); $mtime = explode(" ",$mtime); $mtime = $mtime[1] + $mtime[0]; $endtime = $mtime; $totaltime = round(($endtime - $starttime), 4); print "Parsetime: $totaltime s »"; ?> also have to put something in the header , if I'm not mistaken, don't know what exactly
__________________ |
11th January 2003, 20:02 | #3 |
Member Join Date: May 2002
Posts: 1,202
| Parsetime: 1042315631.1495 s der scheelt ergens iets denk ik :-) (I think there's something wrong :-) ) |
11th January 2003, 20:06 | #4 |
Madshrimp Join Date: May 2002 Location: 7090/Belgium
Posts: 79,021
| you have to put something at the top of the page.. trying to find what google answers all questions: http://www.sitemasters.be/index.php?...cripten&id=114 example: http://www.madshrimps.be/?action=test this piece at the top $mtime = microtime(); $mtime = explode(" ",$mtime); $mtime = $mtime[1] + $mtime[0]; $starttime = $mtime; this piece at the bottom $mtime = microtime(); $mtime = explode(" ",$mtime); $mtime = $mtime[1] + $mtime[0]; $endtime = $mtime; $totaltime = ($endtime - $starttime); printf("<center><font size=-1>Parsetime: %f seconden.</font></center> ", $totaltime);
__________________ |
11th January 2003, 20:17 | #5 |
Madshrimp Join Date: May 2002 Location: 7090/Belgium
Posts: 79,021
| found the answer ^^
__________________ |
12th January 2003, 00:08 | #6 |
Member Join Date: May 2002
Posts: 1,202
| thanks! |
12th January 2003, 00:16 | #7 |
Madshrimp Join Date: May 2002 Location: 7090/Belgium
Posts: 79,021
| you're welcome bro where are you gonna put the code ?
__________________ |
12th January 2003, 10:50 | #8 | |
Member Join Date: May 2002
Posts: 1,202
| Quote:
(main, viewthreads & viewreplies) Found out that I need to work on database structure.. (parsetime of main page = 1,5 secs..) => Server always has to find the max(postdate/time+username) of a post of a thread in a forum... The more posts/threads, the slower the mainpage will become.. But I'm going to begin on v3.0 of my forum.. At this moment I'm finding the week points of the current version.. v3.0 is gonna kick *** :grin: MOD: could you add the code to the mainpage of the forum to see what's the parsetime of this forum's mainpage? | |
12th January 2003, 20:59 | #9 | |
Madshrimp Join Date: May 2002 Location: 7090/Belgium
Posts: 79,021
| Quote:
vB mixed php code with alot of stylesheets and templates put in a mysqldatabase not really worth the trouble, will only risk to break it
__________________ | |
12th January 2003, 21:08 | #10 | |
Member Join Date: May 2002
Posts: 1,202
| Quote:
| |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Shooting yourself in the foot: Time Warner's usage caps | jmke | WebNews | 6 | 27th January 2008 02:03 |
LCD Panels with Response Time Compensation | Sidney | WebNews | 0 | 21st December 2005 12:44 |
chkdsk runs every time after boot. | kristos | Hardware/Software Problems, Bugs | 7 | 24th February 2005 12:00 |
Speed Up Firefox Loading Page Time and Startup Time | jmke | WebNews | 9 | 4th January 2005 23:10 |
ABIT Fatal1ty Time Trials™ @ CPL Winter 2004 Championships | jmke | WebNews | 1 | 10th December 2004 23:21 |
BenQ Intends to Start Production of TFT Panels with 8ms Response Time | jmke | WebNews | 0 | 5th September 2004 23:58 |
Saving 1Gb of HD space + faster boot time + faster app loading @ IANAG | jmke | WebNews | 0 | 27th May 2004 21:04 |
Philips launches 12ms response time 19-inch LCD monitor | jmke | WebNews | 0 | 25th May 2004 13:11 |
Sharp LL-191A-B: 16ms Response Time for 19" LCDs @ Anandtech | jmke | WebNews | 0 | 18th May 2004 14:23 |
Thread Tools | |
| |