Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Kandy
Welcome all my all new pet shop Bark.lk
dilumrane
Updated:
Yesterday at 12:26 PM
Windows RDP Only Rs.500 a month
Blogerwiki
Updated:
Sunday at 12:41 PM
Ad icon
V2ray VPN for Tunneling
hu KANNA
Updated:
Oct 22, 2026
FREE SEO Check & Google Maps Check for Sri Lankan Businesses | Web Design, Website Price Rs 14,900 |
LankaSolve
Updated:
Oct 20, 2026
ඕනම රටකට සෙට් වෙන CV එකක්
ErMurazor
Updated:
Oct 17, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
Computers & Internet
Software Development
UseFul PHP Script`s n Code`s
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="MaD-DoC" data-source="post: 4130093" data-attributes="member: 56284"><p><strong>Page load time</strong></p><p></p><p> <strong>Description</strong></p><p></p><p> Outputs the time in seconds that it takes for a PHP page to load.</p><p> <strong>The code</strong></p><p></p><p> [PHP]<?php</p><p></p><p></p><p></p><p>// Insert this block of code at the very top of your page:</p><p></p><p></p><p></p><p>$time = microtime();</p><p></p><p>$time = explode(" ", $time);</p><p></p><p>$time = $time[1] + $time[0];</p><p></p><p>$start = $time;</p><p></p><p></p><p></p><p>// Place this part at the very end of your page</p><p></p><p></p><p></p><p>$time = microtime();</p><p></p><p>$time = explode(" ", $time);</p><p></p><p>$time = $time[1] + $time[0];</p><p></p><p>$finish = $time;</p><p></p><p>$totaltime = ($finish - $start);</p><p></p><p>printf ("This page took %f seconds to load.", $totaltime);</p><p></p><p></p><p></p><p>?> </p><p></p><p>[/PHP]</p></blockquote><p></p>
[QUOTE="MaD-DoC, post: 4130093, member: 56284"] [B]Page load time[/B] [B]Description[/B] Outputs the time in seconds that it takes for a PHP page to load. [B]The code[/B] [PHP]<?php // Insert this block of code at the very top of your page: $time = microtime(); $time = explode(" ", $time); $time = $time[1] + $time[0]; $start = $time; // Place this part at the very end of your page $time = microtime(); $time = explode(" ", $time); $time = $time[1] + $time[0]; $finish = $time; $totaltime = ($finish - $start); printf ("This page took %f seconds to load.", $totaltime); ?> [/PHP] [/QUOTE]
Insert quotes…
Verification
Nawa warak dahaya keeyada? (Namaya wadi kireema dahaya)
Post reply
Top
Bottom