[TYPO3-english] question about climode
Jigal van Hemert
jigal.van.hemert at typo3.org
Sat Sep 29 07:33:11 CEST 2012
Hi,
On 29-9-2012 4:35, tom liu wrote:
> For this code:
> if (!defined('TYPO3_cliMode')) die('You cannot run this script directly!');
> what does this mean: (!defined('TYPO3_cliMode'))
TYPO3_cliMode is a constant which is defined at the beginning of
cli_dispatch.phpsh It is used to check if TYPO3 is running from the
command line (cli = command line interface).
The check is probably done to make sure the script is executed inside
the cli_dispatch.phpsh environment and not called on its own.
--
Jigal van Hemert
TYPO3 Core Team member
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the TYPO3-english
mailing list