Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 4 votes, 3.00 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-29-2002, 06:21 PM   PM User | #1
whackaxe
Senior Coder

 
Join Date: Jun 2002
Location: paris, france
Posts: 1,216
Thanks: 0
Thanked 0 Times in 0 Posts
whackaxe is an unknown quantity at this point
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
whackaxe is offline   Reply With Quote
Old 06-30-2002, 03:51 PM   PM User | #2
mordred
Senior Coder


 
Join Date: Jun 2002
Location: frankfurt, german banana republic
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
mordred is an unknown quantity at this point
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?
mordred is offline   Reply With Quote
Old 06-30-2002, 10:26 PM   PM User | #3
Phip
Registered User

 
Join Date: Jun 2002
Location: Arizona
Posts: 175
Thanks: 0
Thanked 0 Times in 0 Posts
Phip is an unknown quantity at this point
i think he means how long it takes for php to processes, or how long it to precess the page.
Phip is offline   Reply With Quote
Old 06-30-2002, 11:26 PM   PM User | #4
Jeewhizz
Regular Coder


 
Join Date: May 2002
Location: London, England
Posts: 369
Thanks: 0
Thanked 0 Times in 0 Posts
Jeewhizz is an unknown quantity at this point
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
__________________
Jeewhizz - MySQL Moderator
http://www.sitehq.co.uk
PHP and MySQL Hosting

Last edited by Jeewhizz; 07-01-2002 at 12:34 PM..
Jeewhizz is offline   Reply With Quote
Old 07-01-2002, 11:10 AM   PM User | #5
whackaxe
Senior Coder

 
Join Date: Jun 2002
Location: paris, france
Posts: 1,216
Thanks: 0
Thanked 0 Times in 0 Posts
whackaxe is an unknown quantity at this point
thanks thats great
__________________
photoshop too expensive? use the GIMP! www.gimp.org
whackaxe is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:28 PM.


Advertisement
Log in to turn off these ads.