Web Analytics Made Easy -
StatCounter generation time - CodingForum

Announcement

Collapse
No announcement yet.

generation time

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • generation time

    came someone tell me what hte variable or function is to show the time that to php file took to generate? if this isnt a variable or function could someone please tell me how todo it thanks
    photoshop too expensive? use the GIMP! www.gimp.org

  • #2
    Can you be more specific about "generate", because it's not clear to me if you want to retrieve the time when a PHP file was last modified or how long it took a PHP script to process?
    De gustibus non est disputandum.

    Comment


    • #3
      i think he means how long it takes for php to processes, or how long it to precess the page.

      Comment


      • #4
        At the beginning of the page, put this

        PHP Code:
        <?
        include("includes/mysql.php");
        $timeparts explode(" ",microtime());
        $starttime $timeparts[1].substr($timeparts[0],1);
        ?>
        at the bottom, put this before where you want to place teh message.

        PHP Code:
        <?
        $timeparts 
        explode(" ",microtime());
        $endtime $timeparts[1].substr($timeparts[0],1);
        $total_length $endtime-$starttime;
        $total_length round($total_length,6);
        ?>
        Jee
        Last edited by Jeewhizz; Jul 1, 2002, 07:34 AM.
        Jeewhizz - MySQL Moderator
        http://www.sitehq.co.uk
        PHP and MySQL Hosting

        Comment


        • #5
          thanks thats great
          photoshop too expensive? use the GIMP! www.gimp.org

          Comment

          Working...
          X