@@ -31,8 +31,9 @@ |
||
31 | 31 | ini_set('display_startup_errors', TRUE); |
32 | 32 | date_default_timezone_set('Europe/London'); |
33 | 33 | |
34 | -if (PHP_SAPI == 'cli') |
|
34 | +if (PHP_SAPI == 'cli') { |
|
35 | 35 | die('This example should only be run from a Web Browser'); |
36 | +} |
|
36 | 37 | |
37 | 38 | /** Include PHPExcel */ |
38 | 39 | require_once dirname(__FILE__) . '/../src/Bootstrap.php'; |
@@ -31,8 +31,9 @@ |
||
31 | 31 | ini_set('display_startup_errors', TRUE); |
32 | 32 | date_default_timezone_set('Europe/London'); |
33 | 33 | |
34 | -if (PHP_SAPI == 'cli') |
|
34 | +if (PHP_SAPI == 'cli') { |
|
35 | 35 | die('This example should only be run from a Web Browser'); |
36 | +} |
|
36 | 37 | |
37 | 38 | /** Include PHPExcel */ |
38 | 39 | require_once dirname(__FILE__) . '/../src/Bootstrap.php'; |
@@ -31,8 +31,9 @@ |
||
31 | 31 | ini_set('display_startup_errors', TRUE); |
32 | 32 | date_default_timezone_set('Europe/London'); |
33 | 33 | |
34 | -if (PHP_SAPI == 'cli') |
|
34 | +if (PHP_SAPI == 'cli') { |
|
35 | 35 | die('This example should only be run from a Web Browser'); |
36 | +} |
|
36 | 37 | |
37 | 38 | /** Include PHPExcel */ |
38 | 39 | require_once dirname(__FILE__) . '/../src/Bootstrap.php'; |
@@ -31,8 +31,9 @@ |
||
31 | 31 | ini_set('display_startup_errors', TRUE); |
32 | 32 | date_default_timezone_set('Europe/London'); |
33 | 33 | |
34 | -if (PHP_SAPI == 'cli') |
|
34 | +if (PHP_SAPI == 'cli') { |
|
35 | 35 | die('This example should only be run from a Web Browser'); |
36 | +} |
|
36 | 37 | |
37 | 38 | /** Include PHPExcel */ |
38 | 39 | require_once dirname(__FILE__) . '/../src/Bootstrap.php'; |