[TYPO3-core] RFC: CLI dispatcher doesn't work with CGI API

Karsten Dambekalns karsten at typo3.org
Wed Jul 18 20:14:03 CEST 2007


On 18.07.2007, at 10:37, Martin Kutschker wrote:
> Robert Lemke schrieb:
>> if (php_sapi_name() !== 'cli') die();
> Please read the start of this thread.

Well, the suggested function should be the most reliable way of  
checking the way a script has been called. It also allows to check  
- cgi-fcgi
- cgi

And more, see: http://lv2.php.net/manual/en/function.php-sapi-name.php

Karsten Dambekalns
Gimme Five!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 304 bytes
Desc: This is a digitally signed message part
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070718/0d661f95/attachment.pgp 

More information about the TYPO3-team-core mailing list