Jason Garber wrote:
> Hello internals,
>
> What is the best way, from within a php script, to tell that the
> script is being run on the command line?
>
> I've used if(defined('STDIN')) but that seems kind of kludgey.I've used if (php_sapi_name() == 'cli') ... which seems to work well. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
