Activity Stream
48,167 MEMBERS
6698 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 9 of 9

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com
    PHP Code: 
    <?php

    // Paste this in header before HTML starts.
    $time microtime();
    $time explode(" "$time);
    $time $time[1] + $time[0];
    $start $time;

    // Paste this on end of page/html.
    $time microtime();
    $time explode(" "$time);
    $time $time[1] + $time[0];
    $finish $time;
    $totaltime = ($finish $start);
    printf ("Load time: %f seconds"$totaltime);

    ?>
    l0calh0st Reviewed by l0calh0st on . Checking Uptime / Loading Speed Is there anyway to check how much time a site takes to load completely Also is that load time normal / slow / fast / perfect ?? Anything anyone know please help Rating: 5

    Defendos BETA3 Released! Thread - Official Website

  2.   Sponsored Links

  3.     
    #2
    Member
    Quote Originally Posted by l0calh0st View Post
    PHP Code: 
    <?php

    // Paste this in header before HTML starts.
    $time microtime();
    $time explode(" "$time);
    $time $time[1] + $time[0];
    $start $time;

    // Paste this on end of page/html.
    $time microtime();
    $time explode(" "$time);
    $time $time[1] + $time[0];
    $finish $time;
    $totaltime = ($finish $start);
    printf ("Load time: %f seconds"$totaltime);

    ?>
    BTW Since PHP 5 we can get a float value using the get_as_float parameter. So it can be very simple like:-
    PHP Code: 
    <?php

    // Paste this in header before HTML starts.
    $start microtime(1);

    // Paste this on end of page/html.
    printf ("Load time: %f seconds"microtime(1) - $start);

    ?>
    Thats why they are thinking to make it return float value by default in PHP6

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Checking In
    By johnniegolfer in forum Introductions
    Replies: 0
    Last Post: 27th Mar 2012, 08:12 PM
  2. Checking in
    By 808crazy in forum Introductions
    Replies: 1
    Last Post: 12th Aug 2011, 05:28 PM
  3. How to improve my site's page loading speed
    By moviesmegaupload in forum Technical Help Desk Support
    Replies: 7
    Last Post: 25th Feb 2011, 01:55 PM
  4. Old newbie checking in
    By Twink in forum Introductions
    Replies: 8
    Last Post: 22nd Dec 2010, 05:59 AM
  5. Replies: 1
    Last Post: 26th Sep 2009, 07:39 PM

Tags for this Thread

BE SOCIAL