PHP Page Loading Time

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
AhmedBR
AppGini Super Hero
AppGini Super Hero
Posts: 327
Joined: 2013-09-19 10:23

PHP Page Loading Time

Post by AhmedBR » 2016-04-12 11:39

Use this code in header.php right below <header>:

Code: Select all

<?php $start_time = microtime(true); ?>
and in footer.php

Code: Select all

Generated in: <?php echo(number_format(microtime(true) - $start_time, 4)); ?> seconds.
Use code right before, otherwise it will be below or behind the powered by notice and no one will see it:

Code: Select all

<?php if(!$_REQUEST['Embedded']){ ?>
				<!-- powered by notice -->
AppGini 22.14 - xampp 3.3.0 - PHP 7.4.30 - Summary reports - Calendar - Mass update - Messages - AppGiniHelper

Post Reply