note 107062 deleted from function.php-sapi-name by googleguy
| From: | googleguy@php.net | Date: | Fri, 11 Jan 2013 09:25:35 +0000 |
| Subject: | note 107062 deleted from function.php-sapi-name by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-192907@lists.php.net to get a copy of this message | ||
Note Submitter: tobias(at)tobias(-)net(dot)nl
----
You can check whether the user is using CLI or browser by running this script:
<?php
if (isset ($_SERVER['SESSIONNAME'])) echo 'CLI';
else echo 'Browser';
?>