[TYPO3-english] question about climode

tom liu tomliutest at gmail.com
Sat Sep 29 07:53:45 CEST 2012


Got it. Thanks

Tom

On Sat, Sep 29, 2012 at 1:33 PM, Jigal van Hemert <
jigal.van.hemert at typo3.org> wrote:

> 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
>
> ______________________________**_________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**english<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english>
>


More information about the TYPO3-english mailing list