Question : php check if cli
Answered by : alexander-matzen
function isCommandLineInterface()
{ return (php_sapi_name() === 'cli');
}
Source : | Last Update : Wed, 24 Feb 21
Answered by : alexander-matzen
function isCommandLineInterface()
{ return (php_sapi_name() === 'cli');
}
Source : | Last Update : Wed, 24 Feb 21