How to differentiate between http and cli requests?
Asked 2010-01-31T19:23:32.480
11
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?