-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpre_script.php
More file actions
31 lines (23 loc) · 802 Bytes
/
pre_script.php
File metadata and controls
31 lines (23 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
* @file
* \brief Custom scripting to run before %PHPizza starts running
*
* You may write your own codes here which you want to run before the
* framework starts running.
*
* Codes in this page are executes before anything has started!
*/
// Code beyond this line is totally optional.
error_reporting(E_ALL); // Turning on error reporting
ini_set('display_errors', '1');
// Calculation of time taken to generate the page
// ***************************************************************************
// comment out this block in production server
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];
$pizzaStartTime = $time;
// ***************************************************************************
// Time Calculation Started.
?>