How to differentiate between http and cli requests?

前端 未结 0 1609
后悔当初
后悔当初 2020-12-19 00:15

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\']<

相关标签:
回答
  • 消灭零回复
提交回复
热议问题