Please answer this simple SPAM challenge: min(seven, nine)? (Example: nine)
Check directly without calling functions: <?php if (PHP_SAPI === 'cli') { // ... } ?> You can define a constant to use it elsewhere <?php define('ISCLI', PHP_SAPI === 'cli'); ?>
<< Back to user notes page