note 108808 rejected from features.commandline.introduction by danbrown
| From: | danbrown@php.net | Date: | Fri, 25 May 2012 23:59:22 +0000 |
| Subject: | note 108808 rejected from features.commandline.introduction by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-188245@lists.php.net to get a copy of this message | ||
Note Submitter: ivor dot oconnor at gmail dot com
----
"From a shell, typing php -v will tell you whether php is CGI or CLI. See also the function
php_sapi_name() and the constant PHP_SAPI."
What in the following indicates this?
php -v
PHP 5.3.13 with Suhosin-Patch (cgi-fcgi) (built: May 8 2012 20:00:44)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies