CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 page generation time [RESOLVED]

Print topic Send  topic

Author Message
computerman


Posts: 27
Posted: 05/06/2010, 7:59 AM

if anybody can tell exactly where to put, to make it work accurately.
or is there any special version made for CCS generated pages?

Quote :
http://www.110mb.com/forum/tip-displaying-php-page-generation-time-t19030.0.html

_________________
"whoever is a cruel, must be an old downtrod who has got authority,
whoever is a downtrod, must be an old cruel who has lost authority. "
An Oriental Saying
View profile  Send private message
ckroon

Posts: 869
Posted: 05/06/2010, 8:20 AM

Make a new page
Call it Footer.
Mark Includable as YES
add an event in the Page Before Show

paste the code

$time = microtime();
$time = explode(" ", $time);
$time = $time[1] + $time[0];
$finish = $time;
$totaltime = ($finish - $start);
printf ("Page generated in %f seconds.", $totaltime);

save it publish it. then place the Includable page FOOTER at the bottom of any page.

Not tested, but this is the main idea.
_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
ckroon

Posts: 869
Posted: 05/06/2010, 8:21 AM

sorry.. missed the header

Make a header includable page as well

$time = microtime();
$time = explode(" ", $time);
$time = $time[1] + $time[0];
$start = $time;

Header generates START time, footer gets your Finish time.. then it shows the difference.

_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
computerman


Posts: 27
Posted: 05/06/2010, 8:37 AM

thank you, It works!
_________________
"whoever is a cruel, must be an old downtrod who has got authority,
whoever is a downtrod, must be an old cruel who has lost authority. "
An Oriental Saying
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.