note 104167 deleted from features.commandline by danbrown
| From: | danbrown@php.net | Date: | Tue, 31 May 2011 17:29:08 +0000 |
| Subject: | note 104167 deleted from features.commandline by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-180136@lists.php.net to get a copy of this message | ||
Note Submitter: milesrichardson at yale dot edu
----
Be careful using Rizwan's solution below ("A simple way to check if script is running from
browser or cli.")
While it does check to see if running from a browser or CLI, the STDIN constant is NOT defined if
the script is running from CRONTAB.