|
|||||||
| PHP Articles Read and post PHP tutorials. |
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
page generation time
This tutorial will show you how to add a page generation time on your website. This is what we have to do:
1. Get the time in micro-seconds using the function: microtime(). 2. Turn the micro-time into an array using the explode() function. 3. Add the two parts to the array together (the micro-seconds to the seconds). 4. Repeat steps 1,2 and 3 for the bottom of the page 5. Find the total loading time by taking the time taken at the end of the page from the time taken at the top of the page 6. Round the microtime and return it to the browser Put at the top of your page: PHP Code:
PHP Code:
This tutorial was taken from http://www.spoono.com |
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| It is time to become a webhosting reseller | wizard | Articles, Tutorials, and Guides | 0 | 01-07-2005 10:45 PM |
| Impressing Search Engines | wizard | Articles, Tutorials, and Guides | 0 | 01-07-2005 10:44 PM |
| Writing Your First Page | wizard | HTML & CSS Articles | 3 | 01-06-2005 05:40 AM |
| Go to another part of a document (on the same page)! | Helloadam | HTML & CSS Articles | 0 | 09-18-2004 11:17 AM |
All times are GMT -6. The time now is 11:38 PM.






Linear Mode
