note 107061 deleted from function.php-sapi-name by danbrown
| From: | danbrown@php.net | Date: | Fri, 06 Jan 2012 19:20:01 +0000 |
| Subject: | note 107061 deleted from function.php-sapi-name by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-185422@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';
?>