PHP Compruebe si CLI
function isCommandLineInterface()
{
return (php_sapi_name() === 'cli');
}
Alexander Matzen
function isCommandLineInterface()
{
return (php_sapi_name() === 'cli');
}