The title is quiet straightforward. I have to know on server side if the script called through HTTP request or by command line. I could examine the $_SERVER['argv'] or $_SERVER['argc'].
What is the pragmatic way to do that?
The title is quiet straightforward. I have to know on server side if the
Share
https://www.php.net/manual/en/function.php-sapi-name.php